Skip to content

GitHub Actions - Error when doing a git push inside an action #26968

Answered by wesleytodd
brpaz asked this question in Actions
Discussion options

You must be logged in to vote

Hey, I was able to get this working.  Here is an example:

https://github.com/pkgjs/gh-pages/blob/master/entrypoint.sh

Basically there are two environment vars you can use GITHUB_ACTOR and GITHUB_TOKEN.  Then use the https push url.  To get the token passed in you need to use the secrets as documented here: https://help.github.com/en/articles/virtual-environments-for-github-actions#github_token-secret

Hope this helps.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants