Skip to content

Commit 2d123a3

Browse files
authored
fix: Update release.yml (#261)
Adds a conditional to verify that actual changes are made; if no changes are found, the commit and push steps are skipped. This change is intended to prevent failures of the release workflow after the actual changes have already been pushed (the only remaining changes are package-lock.json and a gh hash of some sort).
1 parent 821f748 commit 2d123a3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,9 @@ jobs:
8080
- name: Commit and Push Changes (to temp branch)
8181
run: |
8282
git add dist index.html
83-
git commit -m "Update dist folder [skip ci]"
84-
git push --force origin temp-build-branch
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
87+
echo "No changes to commit"
88+
fi

0 commit comments

Comments
 (0)