In trying to create a pull request with a push to to gh-pages
I get this error in my action:
Push the commit or tag
/usr/bin/git push origin gh-pages
remote: Permission to pyuvm/pyuvm.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/pyuvm/pyuvm.git/': The requested URL returned error: 403
Error: Action failed with "The process '/usr/bin/git' failed with exit code 128"
I have given workflows permission to write in settings:
I’ve also tried added permissions to my YAML file:
name: documentation
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
However, the log file suggests that my permissions are being thwarted:
What am I doing wrong?