Skip to content

Commit 46f08d1

Browse files
authored
fix: Update release.yml (#266)
Changed the conditional for "commit and push" to use `git status --porcelain` to check if there are changes to commit.
1 parent 99f9ea9 commit 46f08d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ 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
83+
if [ -z "$(git status --porcelain)" ]; then
8484
echo "No changes to commit"
8585
exit 0
8686
fi

0 commit comments

Comments
 (0)