Skip to content

Autofix workflow on a pull request invalidates previous check state without triggering new checks #25874

Answered by wipe2238
jaredly asked this question in Actions
Discussion options

You must be logged in to vote

Provided GITHUB_TOKEN is not allowed to trigger checks, you need to generate and use own/bot’s account/any other token and it will work just fine.

If using bot account to do formatting, you probably don’t want to waste time on formatting just-formatted code…

on: push
jobs:
 format-source:
  runs-on: ubuntu-latest
  if: github.actor != 'my_bot_account'

…and works great to prevent infinite loop you mentioned.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ZulluBalti
Comment options

@wipe2238
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants