Skip to content

Commit

Permalink
Fix bug where changelog is always slightly out of date on release tags (
Browse files Browse the repository at this point in the history
jrnl-org#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
  • Loading branch information
wren authored Nov 1, 2022
1 parent 51e9ce5 commit 8ad9e2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 8ad9e2b

Please sign in to comment.