-
BehaviourSteps to reproduce this issueIt seems that github changed something and push to the remote repository stopped working. Expected behaviour
Actual behaviour
Configuration
- name: Deploy WebAssembly to other repository GitHub Pages
if: inputs.deploy-web-assembly-path != '' &&
env.CONVENTIONAL-COMMITS-PUBLISH-CONDITIONS == 'true' &&
inputs.deploy-web-assembly-repo != ''
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: ${{ inputs.deploy-web-assembly-path }}
repo: ${{ inputs.deploy-web-assembly-repo }}
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_PAT: ${{ secrets.personal-token }} Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I encountered the same problem. The root cause for me was probably switching to Github's new fine grained tokens - maybe I just missed some necessary permissions there 🤷🏻. For now, I fixed it by going back to a classic token with |
Beta Was this translation helpful? Give feedback.
-
I switched to fine grained token today and encountered the same issue.
It's my username, a colon, then the fine grained token. |
Beta Was this translation helpful? Give feedback.
I switched to fine grained token today and encountered the same issue.
After trial and error, I found the solution - the secret should be written like this:
It's my username, a colon, then the fine grained token.
After that, this Action works correctly.