Fix bug where changelog is always slightly out of date on release tags (#1631)

* fix issue where changelog is always slightly out of date on release tags

* fix tag step running all the time per CR

* update tag name to use more clear variable name
This commit is contained in:
Jonathan Wren 2022-11-01 16:50:25 -07:00 committed by GitHub
parent 51e9ce5638
commit 8ad9e2bdd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,6 +152,14 @@ jobs:
git commit -m "Update changelog [ci skip]"
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
git tag -fam "$GITHUB_REF_NAME" "$GITHUB_REF_NAME"
git push --tags --force
- name: Merge to Release branch
if: env.FULL_RELEASE == 'true'
run: |