Closed UweTrottmann closed 3 years ago
I think this is a better way than creating a personal access token that allows access to all repos.
Thank you for sharing!
I was using the personal access token and ran into permission problems pushing to master on the organizational account. After testing the JEKYLL_PAT: ${{ github.actor }}:${{ github.token }}
the build was possible with v2 and pushed to master and created gh-pages branch as intended.
A while back, i got this working with v2.0.1 only; any other version on the organizational level failed with same result I had above with a new org. account.
Thanks for sharing @UweTrottmann
Regarding the "Known limitation" in the README I wanted to share that for me the following did not work (for a private repo):
However, this does:
Note that
github.token
is the same assecrets.GITHUB_TOKEN
, I just chose it for consistency (e.g. both work).Background: I didn't want to use a Personal Access Token because it allows write access to all repos. The token from the
github
context expires once the job is done. Note that I don't use GitHub Pages, so I'm not sure if the above solves the initial deployment issue (see #34). Maybe someone could check?Thanks for this useful action!