Skip to content

Commit dd0274d

Browse files
authored
Merge pull request #3 from sonatype-nexus-community/no-commit
avoid commit if not necessary
2 parents e8f5def + d9080a2 commit dd0274d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
run: ./update-pytorch.sh
2020

2121
- name: Commit Push
22-
continue-on-error: true
2322
env:
2423
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2524
run: |
25+
git diff-index --quiet HEAD && exit 0 # commit only if something to do
2626
git config --local user.email "[email protected]"
2727
git config --local user.name "Update CI"
2828
git add -A

0 commit comments

Comments
 (0)