Skip to content

Commit 6d13d5a

Browse files
Updated export workflow to allow zero change pushes
1 parent 136e4ee commit 6d13d5a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/submodule-export.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,15 @@ jobs:
5252
rm -rf $line
5353
done < "$BLACKLIST"
5454
55-
- name: Commit Changes
55+
- name: Commit Changes (if any)
5656
run: |
5757
git add -A
58-
git commit -m "Submodule Export"
58+
if git diff --cached --quiet; then
59+
echo "No changes to commit"
60+
else
61+
git commit -m "Submodule Export"
62+
fi
5963
6064
- name: Push export branch
6165
run: |
6266
git push --set-upstream origin "$EXPORT_BRANCH" --force
63-

0 commit comments

Comments
 (0)