From 55a82ca24f1c4585f348f92fa0de24650ecae7a2 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sat, 6 Jul 2024 15:14:44 +0200 Subject: [PATCH] Add Section on preventing infinite loops to README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index e2537c8..873e2ff 100644 --- a/README.md +++ b/README.md @@ -238,6 +238,12 @@ If you create a personal access token, apply the `repo` and `workflow` scopes. 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. +### Prevent Infinite Loop when using a Personal Access Token + +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. + +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. + ### Change to file is not detected 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.