PR checks won't run after action pushes changed code #285
-
I've noticed that if stefanzweifel/git-auto-commit-action pushes changed code, the PR checks won't run again to check it. Is there a way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yeah, this happens due to a limitation set by GitHub for the
You can fix this by creating a new Personal Access Token (PAT), - uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }} If you create a personal access token, apply the Commits made by git-auto-commit will then trigger other workflows again (eg. running your test suite). Keep in mind that this constellation could lead to and endless chain of workflow executions. |
Beta Was this translation helpful? Give feedback.
Yeah, this happens due to a limitation set by GitHub for the
GITHUB_TOKEN
. From the docs.You can fix this by creating a new Personal Access Token (PAT),
storing the token as a secret in your repository and then passing the new token to the
actions/checkout
Action step.If you create a personal access token, apply the
repo
andworkflow
scopes.If you work in an organization and don't wa…