-
Notifications
You must be signed in to change notification settings - Fork 231
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
Push issue #44
Comments
i'm having the same issue |
For anyone suffering this issue, this might be the persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo |
@magodo Thanks for this, I am now getting Started: bash /home/runner/work/_actions/ad-m/github-push-action/master/start.sh
! [rejected] HEAD -> master (fetch first)
Push to branch master
error: failed to push some refs to '***github.com/sabuto/bot-test2.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again. This makes no sense as i have pulled the latest version when i run the workflow, any ideas? |
@sabuto , add |
Are you sure you set the fetch-depth to 0? I have this issue because of that. |
Thanks for this guys! and thanks for the fast responses :) i am happy for this to be closed as it works for me but will let you decide as the other haven't commented. |
These two lines are critical to the function of the Action, please add to the readme so the fix in ad-m#44 doesn't get lost.
@magodo I'm setting it like so:
i get this error:
|
@organizejs , missing - uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0 |
Thanks guys, that worked for me.
Again, it seems that - uses: actions/checkout@master
with:
ref: ${{ github.event.pull_request.head.ref }} |
* fix: when updating changlelog push back to pull request As noted here ad-m/github-push-action#38, by default the push is done to the master branch. As master is locked down, the push should be done to the pull requests branch * fix: Try by specifying ref on checkout as found in github comment ref: ad-m/github-push-action#44 (comment) * fix: add request to persist credentials when checking out * Use fetch-depth set to 0 * Move back to use bumpversion * Don't run pre commit on auto generated files * WIP: recreate auto deployment
fix the error thrown by GitHub Push actions. See reference here: ad-m/github-push-action#44
These two lines are critical to the function of the Action, please add to the readme so the fix in ad-m#44 doesn't get lost.
These two lines are critical to the function of the Action, please add to the readme so the fix in #44 doesn't get lost.
#884) * Update github-push-action to v0.6.0 * Use 'persist-credentials: false' to allow github-push-action to push to master with a personal access token - ad-m/github-push-action#44 - ad-m/github-push-action#46
I've got the same issue with merge commit. Related: #20. |
Ok, I may be being really dumb here but
I get permission denied
my workflow file:
I have the psa key setup in the repo that is triggering the workflow
which is a personal access token with all rights.
The text was updated successfully, but these errors were encountered: