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

Error: Action failed with "The process '/usr/bin/git' failed with exit code 128" #497

Closed
5 tasks done
WuZhuoran opened this issue Oct 3, 2020 · 3 comments
Closed
5 tasks done
Assignees
Labels

Comments

@WuZhuoran
Copy link

WuZhuoran commented Oct 3, 2020

Check list before opening this issue

Describe your question

First time to use this action to deploy one website.
The website is build with Hugo and I want to use actions to do auto deploy on repo github pages.
The action will fail at Deploy stage.

The error message is:

Run peaceiris/actions-gh-pages@v3
Dump inputs
Setup auth token
Prepare publishing assets
Setup Git config
Create a commit
Push the commit or tag
  /usr/bin/git push origin gh-pages
  remote: Permission to YiGu-Studio/DocsModdingBannerlordCN.git denied to github-actions[bot].
  fatal: unable to access 'https://github.com/YiGu-Studio/DocsModdingBannerlordCN.git/': The requested URL returned error: 403
  Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"

I tried with github_token: ${{ secrets.GITHUB_TOKEN }}
it will throw the error above.

I tried with personal_token: ${{ secrets.PERSONAL_TOKEN }} or deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
it will failed at stage Setup auth token

I even tried with change username and email to my account name. But it still failed.

I post the screen shots of my secrets page in next section.

Link to your contents

Here is the workflow files.
https://github.com/YiGu-Studio/DocsModdingBannerlordCN/blob/e64547ca8ae8ed77e617ecdf816239de051d3273/.github/workflows/hugo_deploy.yml

The raw log of the workflow is here.
https://pipelines.actions.githubusercontent.com/ReJNjsa4JNo8v6DjAI5NX8yN0RMO8ccdvpMUIOf1CGkDAThal5/_apis/pipelines/1/runs/21/signedlogcontent/3?urlExpires=2020-10-03T00%3A36%3A55.9686007Z&urlSigningMethod=HMACV1&urlSignature=7APdckxxT5kF2pDqog6wZtlzjwFxDteZZa8iGBLsRwE%3D

Screenshots

Screen Shot 2020-10-02 at 5 34 28 PM

If using Personal Token or Deploy Key
Screen Shot 2020-10-02 at 5 46 56 PM

Additional context

I found that if I directly push to branch. it will pass.
But Now I want this to be used for all PR.

Double checked. If I merge this PR, the run will run successfully, but it will failed in PR.

@WuZhuoran WuZhuoran added the support User support label Oct 3, 2020
@WuZhuoran
Copy link
Author

Fixed by recreating the API Deploy KEY.

@peaceiris
Copy link
Owner

This may be related to #339.

#339 (comment)
#339 (comment)

@github-actions
Copy link
Contributor

This issue has been LOCKED because of it being resolved!

The issue has been fixed and is therefore considered resolved.
If you still encounter this or it has changed, open a new issue instead of responding to solved ones.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants