fix: skip commit/push in update_version when tag is unchanged
publish.yaml / publish (push) Successful in 8s

git commit was failing the step (and job) with "nothing to commit" when
the target tag already matched releases/versions.yaml, e.g. on a re-run
for the same commit SHA.
This commit is contained in:
2026-08-18 09:33:33 -04:00
parent fce2468b2b
commit 503c02b24c
+4
View File
@@ -38,5 +38,9 @@ runs:
git config user.email "gitea-actions@gitea.pixelparasol.com"
git config user.name "Gitea Actions"
git add releases/versions.yaml
if git diff --cached --quiet; then
echo "No version change for ${{ inputs.service }}, skipping commit"
exit 0
fi
git commit -m "chore: update ${{ inputs.service }} to ${{ inputs.tag }}"
git push