Skip to content

Commit

Permalink
only push if ahead
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Jul 26, 2023
1 parent fe8184d commit 51227bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/render_readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:
git config --local user.name "GitHub Action"
git add README.md
git diff-index --quiet HEAD || git commit -m "Automatic readme update"
git push origin || echo "No changes to push"
git status -sb | grep -q ahead && git push origin

0 comments on commit 51227bf

Please sign in to comment.