mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
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:
parent
51e9ce5638
commit
8ad9e2bdd6
1 changed files with 8 additions and 0 deletions
8
.github/workflows/changelog.yaml
vendored
8
.github/workflows/changelog.yaml
vendored
|
@ -152,6 +152,14 @@ jobs:
|
||||||
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
|
||||||
|
git tag -fam "$GITHUB_REF_NAME" "$GITHUB_REF_NAME"
|
||||||
|
git push --tags --force
|
||||||
|
|
||||||
- name: Merge to Release branch
|
- name: Merge to Release branch
|
||||||
if: env.FULL_RELEASE == 'true'
|
if: env.FULL_RELEASE == 'true'
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue