fix tag step running all the time per CR

This commit is contained in:
Jonathan Wren 2022-10-31 20:38:51 -07:00
parent c6754d50f7
commit 389dd8ff29
No known key found for this signature in database

View file

@ -151,6 +151,11 @@ jobs:
git add "$FILENAME" git add "$FILENAME"
git commit -m "Update changelog [ci skip]" git commit -m "Update changelog [ci skip]"
git push origin "$BRANCH" git push origin "$BRANCH"
- name: Update tag to include changelog
if: startsWith(env.GITHUB_REF, 'refs/tags/')
run: |
# This is a tag build (releases and prereleases)
# update the tag to include the changelog # update the tag to include the changelog
git tag -fam "${GITHUB_REF##*/}" "${GITHUB_REF##*/}" git tag -fam "${GITHUB_REF##*/}" "${GITHUB_REF##*/}"
git push --tags --force git push --tags --force