Skip to content

Commit 4f653b3

Browse files
committed
fix(ci): fix error in github action script on non-release
1 parent 35e3012 commit 4f653b3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ jobs:
4545
run: |
4646
git config user.name "github-actions[bot]"
4747
git config user.email "github-actions[bot]@users.noreply.github.com"
48-
git commit -am "Bump version [skip ci]"
49-
git push origin HEAD:${{ github.ref }}
48+
if git diff --quiet; then
49+
echo "No changes to commit"
50+
else
51+
git commit -am "Bump version [skip ci]"
52+
git push origin HEAD:${{ github.ref }}
53+
fi
5054
5155
build:
5256
needs: bump

0 commit comments

Comments
 (0)