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