fix: skip commit/push in update_version when tag is unchanged
publish.yaml / publish (push) Successful in 8s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user