Skip to content

Commit 0c7f490

Browse files
authored
fix: Update release.yml (#264)
Slightly changes the "Commit and Push Changes..." step to exit if no changes are found.
1 parent 9d9239e commit 0c7f490

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ jobs:
8080
- name: Commit and Push Changes (to temp branch)
8181
run: |
8282
git add dist index.html
83-
if ! git diff-index --quiet HEAD --; then
84-
git commit -m "Update dist folder [skip ci]"
85-
git push --force origin temp-build-branch
86-
else
83+
if git diff-index --quiet HEAD --; then
8784
echo "No changes to commit"
85+
exit 0
8886
fi
87+
git commit -m "Update dist folder [skip ci]"
88+
git push --force origin temp-build-branch

0 commit comments

Comments
 (0)