Skip to content

Revision-related push preventing required check in Pull Request #26895

Discussion options

You must be logged in to vote

Hi @jethas-bennettjones,

Thanks for your reply!

I can repoduce the same on my pull request. This is due to action stefanzweifel/git-auto-commit-action@v4 will commit the changes together with message to repo, however, it used GITHUB_TOKEN by default which will not trigger new workflow. Hence, the new commit in the pull request will not have a status, which caused the pull request cannot be merged. It’s also mentioned in the action description here.

As a workaround, you can use another user who has write access to checkout the repository, and add job level if expression to check the github.actor, after the first push event workflow completed, aviod infinite workflow for the new commit.

It …

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
2 participants