ci(ci.yml): prevent infinite loop (#1537)
This commit is contained in:
1 parent
715ec0c746
commit
80d14a3c7b
1 file changed
+2
@@ -16,6 +16,8 @@ jobs:
|
|||||||
# added or changed files to the repository.
|
# added or changed files to the repository.
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
|
# Prevent infinite loops by checking if the last commit was autogenerated.
|
||||||
|
if: ${{ github.event.commits[0].author.name != 'github-actions[bot]' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
if: env.HAS_USERSTYLES_TOKEN
|
if: env.HAS_USERSTYLES_TOKEN
|
||||||
|
|||||||
Reference in new issue
Block a user