Skip to content

Commit 3a9e4f4

Browse files
committed
don't blindly commit
1 parent 2596800 commit 3a9e4f4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/sync_upstream.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,9 @@ jobs:
3939
git pull
4040
cd ../..
4141
git add .
42-
git commit -am "update sonic-swss and sonic-sairedis branches"
43-
git push
42+
if git status | grep "nothing to commit" > /dev/null ; then
43+
echo "nothing to commit"
44+
else
45+
git commit -am "update sonic-swss and sonic-sairedis branches"
46+
git push
47+
fi

0 commit comments

Comments
 (0)