Skip to content

Commit fd24627

Browse files
authored
Update workflow to continue if no commits (#3)
Signed-off-by: Sean Sundberg <[email protected]>
1 parent caf2997 commit fd24627

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ jobs:
4040
4141
git add -u
4242
43-
git commit -m "Update version to ${TAG_NAME} Makefile"
43+
if ! git diff-index --quiet HEAD; then
44+
git commit -m "Update version to ${TAG_NAME} Makefile"
45+
else
46+
echo "No changes to commit"
47+
fi
4448
4549
- name: Push changes
4650
uses: ad-m/github-push-action@master

0 commit comments

Comments
 (0)