Skip to content

Commit 25038f0

Browse files
committed
Only commit and push translation link updates if there are changes
1 parent 01c8f51 commit 25038f0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/publish-to-website.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ jobs:
3030
node update_links_in_translations.js
3131
git config --local user.name "github-actions[bot]"
3232
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
33-
git commit -am "Update Links in Translations"
34-
git push
33+
git diff --quiet || git commit -am "Update Links in Translations" && git push
3534
- name: Checkout innersourcecommons.org
3635
uses: actions/checkout@v2
3736
with:

0 commit comments

Comments
 (0)