mirror of
https://github.com/gradle/wrapper-validation-action.git
synced 2025-04-21 14:49:18 +08:00
Only push commit on Gradle repository but not forks
This commit is contained in:
parent
f17024a51c
commit
63ef2e3da9
3
.github/workflows/update-dist.yml
vendored
3
.github/workflows/update-dist.yml
vendored
@ -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`'
|
||||
|
Loading…
x
Reference in New Issue
Block a user