We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a97d5eb + c5b2cce commit 5d5e6bfCopy full SHA for 5d5e6bf
.github/workflows/post_draft_release_published.yaml
@@ -57,7 +57,8 @@ jobs:
57
# Update src in the <img> tag
58
sed -i 's|\(<img id="commit-since-release-img"[^>]*src="\)[^"]*\(".*\)|\1'"$NEW_SRC"'\2|' README.md
59
git add README.md
60
- git commit -m "Update README.md badge to ${{ github.event.release.tag_name }}"
+ # Only commit if there are changes (handles re-runs gracefully)
61
+ git diff --cached --quiet README.md || git commit -m "Update README.md badge to ${{ github.event.release.tag_name }}"
62
- name: Set up Python ${{matrix.py_ver}}
63
uses: actions/setup-python@v5
64
with:
0 commit comments