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

support: #742

Closed
3 tasks done
gramster opened this issue May 2, 2022 · 3 comments
Closed
3 tasks done

support: #742

gramster opened this issue May 2, 2022 · 3 comments
Assignees
Labels

Comments

@gramster
Copy link

gramster commented May 2, 2022

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

I have this in my workflow:

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./public

but I get this error:

Run peaceiris/actions-gh-pages@v3
  with:
    github_token: ***
    publish_dir: ./public
    publish_branch: gh-pages
    allow_empty_commit: false
    keep_files: false
    force_orphan: false
    enable_jekyll: false
    disable_nojekyll: false
    exclude_assets: .github
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.9.12/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.12/x64/lib
[INFO] Usage https://github.com/peaceiris/actions-gh-pages#readme
Dump inputs
Setup auth token
  [INFO] setup GITHUB_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 gramster/gramw.github.io.git denied to github-actions[bot].
  fatal: unable to access 'https://github.com/gramster/gramw.github.io.git/': The requested URL returned error: 403
  Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"

Relevant links

Public repository: https://github.com/gramster/gramw.github.io
YAML config:
YAML workflow: https://github.com/gramster/gramw.github.io/blob/main/.github/workflows/gh-pages.yml

Relevant log output

See above

Additional context.

No response

@gramster gramster added the support User support label May 2, 2022
@gramster
Copy link
Author

gramster commented May 2, 2022

I had to change these settings under Settings-Action-General. Maybe worth calling out in docs:

Workflow Permissions: Rean and Write
Allow GitHub Actions to approve pull requests

I'm not sure if both are needed, but enabling both got me past this.

@gramster gramster closed this as completed May 2, 2022
@peaceiris
Copy link
Owner

Good ;-)

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2022

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 May 2, 2022
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