Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 ❌#1546

Unanswered
Rollczi asked this question inQ&A
Discussion options

Describe the bug

Creating worktree…/usr/bin/git fetch --no-recurse-submodules --depth=1 origin masterFrom https://github.com/Rollczi/LiteCommands * branch            master     -> FETCH_HEAD * [new branch]      master     -> origin/master/usr/bin/git worktree add --no-checkout --detach github-pages-deploy-action-temp-deployment-folderPreparing worktree (detached HEAD 2cedce4)/usr/bin/git checkout -B master origin/masterSwitched to and reset branch 'master'branch 'master' set up to track 'origin/master'./usr/bin/chmod -R +rw /home/runner/work/LiteCommands/LiteCommands/usr/bin/rsync -q -av --checksum --progress /home/runner/work/LiteCommands/LiteCommands/. github-pages-deploy-action-temp-deployment-folder --delete --exclude CNAME --exclude .nojekyll --exclude .ssh --exclude .git --exclude .github --exclude github-pages-deploy-action-temp-deployment-folderChecking if there are files to commit…/usr/bin/git add --all ./usr/bin/git checkout -b github-pages-deploy-action/n2xxarv10Switched to a new branch 'github-pages-deploy-action/n2xxarv10'/usr/bin/git commit -m Update Sponsors in README.md --quiet --no-verifyForce-pushing changes.../usr/bin/git push --force ***github.com/Rollczi/LiteCommands.git github-pages-deploy-action/n2xxarv10:masterremote: error: GH006: Protected branch update failed for refs/heads/master.        remote: error: Commits must have verified signatures. Changes must be made through a pull request.        To https://github.com/Rollczi/LiteCommands.git ! [remote rejected] github-pages-deploy-action/n2xxarv10 -> master (protected branch hook declined)error: failed to push some refs to 'https://github.com/Rollczi/LiteCommands.git'Running post deployment cleanup jobs… 🗑️/usr/bin/git checkout -B github-pages-deploy-action/n2xxarv10Reset branch 'github-pages-deploy-action/n2xxarv10'/usr/bin/chmod -R +rw github-pages-deploy-action-temp-deployment-folder/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --forceError: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 ❌Notice: Deployment failed! ❌##[debug]Node Action run completed with exit code 1##[debug]deployment_status='failed'##[debug]Set output deployment-status = failed##[debug]Finishing: Deploy 🚀

Workflow

name:Update Sponsorson:workflow_dispatch:schedule:    -cron:30 15 * * *jobs:deploy:runs-on:ubuntu-lateststeps:      -name:Checkout 🛎️uses:actions/checkout@v2with:lfs:true      -name:Generate Sponsors 💖uses:JamesIves/github-sponsors-readme-action@v1with:token:${{ secrets.PAT }}file:'README.md'template:<a href="https://github.com/{{{ login }}}"><img src="https://images.weserv.nl/?url=https://github.com/{{{ login }}}.png?v=4&mask=circle" width="60px" alt="{{{ name }}}" /></a>&nbsp;&nbsp;&nbsp;      -name:Deploy 🚀uses:JamesIves/github-pages-deploy-action@v4with:commit-message:Update Sponsors in README.mdbranch:masterfolder:'.'

Additional Comments

Protected branch:
image

You must be logged in to vote

Replies: 4 comments 1 reply

Comment options

You have a protected branch rule:

remote: error: GH006: Protected branch update failed for refs/heads/master.        remote: error: Commits must have verified signatures. Changes must be made through a pull request.        To https://github.com/Rollczi/LiteCommands.git ! [remote rejected] github-pages-deploy-action/n2xxarv10 -> master (protected branch hook declined)

You'd need to provide a personal access token from your user account with permissions to override that rule for that to work.

You must be logged in to vote
0 replies
Comment options

You have a protected branch rule:

remote: error: GH006: Protected branch update failed for refs/heads/master.        remote: error: Commits must have verified signatures. Changes must be made through a pull request.        To https://github.com/Rollczi/LiteCommands.git ! [remote rejected] github-pages-deploy-action/n2xxarv10 -> master (protected branch hook declined)

You'd need to provide a personal access token from your user account with permissions to override that rule for that to work.

I added all permissions and nothing changed

You must be logged in to vote
0 replies
Comment options

I would suggest removing the branch protection rule for pull requests in that case unless you absolutely need it.

You must be logged in to vote
0 replies
Comment options

I have no branch protection rule but still get this error:https://github.com/zoj613/zarr-ml/actions/runs/9733172805/job/26859749656?pr=3

Any workarounds?

You must be logged in to vote
1 reply
@JamesIves
Comment options

Looks like you need to add the appropriate permissions to the workflow:

permissions:contents:write
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
3 participants
@Rollczi@JamesIves@zoj613
Converted from issue

This discussion was converted from issue #1527 on March 23, 2024 16:06.


[8]ページ先頭

©2009-2025 Movatter.jp