Only push commit on Gradle repository but not forks

This commit is contained in:
Marcono1234 2024-03-02 17:01:53 +01:00 committed by GitHub
parent f17024a51c
commit 63ef2e3da9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,6 +44,9 @@ jobs:
# Important: The push event will not trigger any other workflows, see
# https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#commits-made-by-this-action-do-not-trigger-new-workflow-runs
- name: Commit & push changes
# Only run for the Gradle repository; otherwise when users create pull requests from their `main` branch
# it would erroneously update `action/index.js` on their branch (and the pull request)
if: github.repository == 'gradle/wrapper-validation-action'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Update `action/index.js`'