Skip to content

Commit 1c18b23

Browse files
committed
fix: only commit if there are changes in update_containers workflow
1 parent 63e246f commit 1c18b23

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/update_containers.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ jobs:
4545
git config --global user.name "github-actions[bot]"
4646
git config --global user.email "github-actions[bot]@users.noreply.github.com"
4747
git add container/
48-
git commit -m "chore: update server versions"
49-
git push
48+
if ! git diff --cached --quiet; then
49+
git commit -m "chore: update server versions"
50+
git push
51+
else
52+
echo "No changes to commit"
53+
fi
5054
5155
build:
5256
needs: update

0 commit comments

Comments
 (0)