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

Pushing to Github doesn't work from Github action #10

Open
nightscape opened this issue Jan 5, 2020 · 0 comments
Open

Pushing to Github doesn't work from Github action #10

nightscape opened this issue Jan 5, 2020 · 0 comments

Comments

@nightscape
Copy link

I'm trying to setup a CI workflow using Github actions.
When sbt-ci-release-early tries to push the created tag back to Github, the following error occurs:

[info] pushing v0.12.5 to https://github.com/crealytics/spark-excel
[info] env var GITHUB_TOKEN found, trying to interweave it with the remote uri (https://github.com/crealytics/spark-excel)
fatal: could not read Password for 'https://***@github.com': No such device or address
[error] java.lang.AssertionError: assertion failed: failed to push the new tag to the remote (https://***@github.com/crealytics/spark-excel)
[error] Use 'last' for the full log.
##[error]Process completed with exit code 1.

The interweaveGithubToken method inserts only the GITHUB_TOKEN into the URL, whereas git seems to expect both a user name and a password.

One Github action for pushing to Github inserts GITHUB_ACTOR as user and the GITHUB_TOKEN as password.

Would this be an option here to?

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