Skip to content

Commit 5086f31

Browse files
authored
Don't wlc commit if there are no pending changes. (#721)
1 parent bb4fce1 commit 5086f31

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,14 @@ jobs:
5555
- name: Lock Weblate and Sync
5656
run: wlc lock
5757
- name: Commit Weblate changes
58-
run: wlc commit
58+
run: |
59+
# 2025-12-01 - wlc commit started returning an error if there are no commits pending
60+
# See https://github.com/WeblateOrg/wlc/issues/1054 for details
61+
if [[ $(wlc repo | grep "needs_commit: True") ]]; then
62+
wlc commit
63+
else
64+
echo "No commit required"
65+
fi
5966
- name: Push Weblate changes
6067
run: wlc push
6168
- name: Pull translation updates pushed by Weblate

0 commit comments

Comments
 (0)