Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal: could not read Username for 'https://github.com': No such device or address #2

Closed
plocket opened this issue Oct 13, 2020 · 1 comment

Comments

@plocket
Copy link

plocket commented Oct 13, 2020

With this code I'm getting this output (error at the bottom):

+ '[' -z practice_at_root.yml ]
+ '[' -z main ]
Cloning destination git repository
+ mktemp -d
+ CLONE_DIR=/tmp/tmp.PKilAJ
+ echo 'Cloning destination git repository'
+ git config --global user.email 52798256+plocket@users.noreply.github.com
+ git config --global user.name plocket
+ git clone --single-branch --branch main https://@github.com/plocket/tests-github-action-push.git /tmp/tmp.PKilAJ
Cloning into '/tmp/tmp.PKilAJ'...
warning: redirecting to https://github.com/plocket/tests-github-action-push.git/
+ echo 'Copying contents to git repo'
+ mkdir -p /tmp/tmp.PKilAJ/practice-dir
Copying contents to git repo
+ cp -R practice_at_root.yml /tmp/tmp.PKilAJ/practice-dir
+ cd /tmp/tmp.PKilAJ
+ echo 'Adding git commit'
+ git add .
Adding git commit
+ git status
+ grep -q 'Changes to be committed'
+ git commit --message 'Update from https://github.com/plocket/a-repo/commit/8844b603381727d3d5258afcfde1fd6352f64ed0'
[main b27bc7f] Update from https://github.com/plocket/a-repo/commit/8844b603381727d3d5258afcfde1fd6352f64ed0
 1 file changed, 1 insertion(+)
 create mode 100644 practice-dir/practice_at_root.yml
+ echo 'Pushing git commit'
Pushing git commit
+ git push origin main
fatal: could not read Username for 'https://github.com': No such device or address
@plocket
Copy link
Author

plocket commented Oct 14, 2020

I just had to add the token! I didn't understand how tokens worked and when I created my workflow I used the marketplace code which didn't include the github token so I missed it.

Thank you for this action. It's great so far. Now I just have to generate the files I need to push. 👍

@plocket plocket closed this as completed Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant