Skip to content

Commit 55a82ca

Browse files
committed
Add Section on preventing infinite loops to README
1 parent 18157e6 commit 55a82ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ If you create a personal access token, apply the `repo` and `workflow` scopes.
238238

239239
If you work in an organization and don't want to create a PAT from your personal account, we recommend using a [robot account](https://docs.github.com/en/github/getting-started-with-github/types-of-github-accounts) for the token.
240240

241+
### Prevent Infinite Loop when using a Personal Access Token
242+
243+
If you're using a Personal Access Token (PAT) to push commits to GitHub repository, the resulting commit or push can trigger other GitHub Actions workflows. This can result in an infinite loop.
244+
245+
If you would like to prevent this, you can add `skip-checks:true` to the commit message. See [Skipping workflow runs](https://docs.github.com/en/actions/managing-workflow-runs/skipping-workflow-runs) for details.
246+
241247
### Change to file is not detected
242248

243249
Does your workflow change a file, but "git-auto-commit" does not detect the change? Check the `.gitignore` that applies to the respective file. You might have accidentally marked the file to be ignored by git.

0 commit comments

Comments
 (0)