Skip to content

Why does this action not cause an endless loop? #238

Answered by stefanzweifel
preritdas asked this question in Help
Discussion options

You must be logged in to vote

Good question which isn't obvious if you're just getting started with Actions.

To push the generated commit to GitHub, this Action uses the so called "GITHUB_TOKEN". The token is used to authenticate with GitHub's APIs and allows this Action to push a commit to your repository.

When this Action pushes the commit to GitHub the push-event is triggered. However, if the event has been triggered with the GITHUB_TOKEN no further workflow run is triggered. Thus preventing an endless loop.

GitHub basically built in a failsafe, so you don't accidentally trigger a loop and burn through your Action minutes.

We've also mentioned this in the README here. (You can disable this protection by using your …

Replies: 1 comment 2 replies

Comment options

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

@stefanzweifel
Comment options

Answer selected by preritdas
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