Skip to content

PR checks won't run after action pushes changed code #285

Discussion options

You must be logged in to vote

Yeah, this happens due to a limitation set by GitHub for the GITHUB_TOKEN. From the docs.

When you use the repository's GITHUB_TOKEN to perform tasks on behalf of the GitHub Actions app, events triggered by the GITHUB_TOKEN will not create a new workflow run. This prevents you from accidentally creating recursive workflow runs.

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.

- uses: actions/checkout@v3
  with:
    token: ${{ secrets.PAT }}

If you create a personal access token, apply the repo and workflow scopes.
If you work in an organization and don't wa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stefanzweifel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants