Skip to content

Commit f868b71

Browse files
committed
Only try to commit if there are changes
Avoid failing workflow steps
1 parent 7ec57d4 commit f868b71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ jobs:
3232
git config user.name github-actions
3333
git config user.email github-actions@github.com
3434
git add .
35-
git commit -m "Add article IDs to front matter"
36-
git push
35+
git diff-index --quiet HEAD || git commit -m "Update frontmatter" && git push

0 commit comments

Comments
 (0)