From 80d14a3c7b22b1ae7cdc6e80c8af893c298004d4 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Sat, 28 Dec 2024 18:36:56 -0500 Subject: [PATCH] ci(ci.yml): prevent infinite loop (#1537) --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index baee0ce5..220535a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,8 @@ jobs: # added or changed files to the repository. contents: write + # Prevent infinite loops by checking if the last commit was autogenerated. + if: ${{ github.event.commits[0].author.name != 'github-actions[bot]' }} steps: - uses: actions/checkout@v4 if: env.HAS_USERSTYLES_TOKEN