diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1316d64..5d73ad5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -216,6 +216,7 @@ jobs: SEMVER_BUMP="patch" else SEMVER_BUMP="none" + echo "EXIT=1" >> $GITHUB_ENV exit 0 # exit if no labels are found, which means no version bump is required fi @@ -277,6 +278,16 @@ jobs: env: GITHUB_REPO: ${{ github.repository }} + - name: sed [unreleased] with new version in CHANGELOG.md + if: env.EXIT != '1' + run: sed -i "s/\[unreleased\]/[${{ env.NEW_TAG }}]/" CHANGELOG.md + + - name: sed [unreleased] with new version in RELEASE_NOTES.md + if: env.EXIT != '1' + run: | + cat ${{ steps.generate_changelog.outputs.changelog }} > RELEASE_NOTES.md + sed -i "s/\[unreleased\]/[${{ env.NEW_TAG }}]/" RELEASE_NOTES.md + - name: Print Changelog if: env.EXIT != '1' run: cat ${{ steps.generate_changelog.outputs.changelog }} && echo "##" && cat CHANGELOG.md @@ -314,6 +325,6 @@ jobs: with: tag_name: ${{ env.NEW_TAG }} release_name: ${{ env.NEW_TAG }} - body_path: ${{ steps.generate_changelog.outputs.changelog }} + body_path: RELEASE_NOTES.md draft: false prerelease: false diff --git a/CHANGELOG.md b/CHANGELOG.md index d59757a..c03b2d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## [unreleased] +## v0.4.12 ### 🐛 Bug Fixes @@ -8,32 +8,32 @@ ### 🐛 Bug Fixes -- *(ci)* Use gh env to skip steps +- **(ci)** Use gh env to skip steps ## v0.4.9 ### 🐛 Bug Fixes -- *(ci)* Commit message fixed and header stripped from changelog -- *(ci)* Only trigger release if commit is not release commit -- *(ci)* Cant type, changelog cleaned +- **(ci)** Commit message fixed and header stripped from changelog +- **(ci)** Only trigger release if commit is not release commit +- **(ci)** Cant type, changelog cleaned ### ⚙️ Miscellaneous Tasks -- *(relase)* Prepare for v0.4.8 -- *(relase)* Prepare for v0.4.9 +- **(release)** Prepare for v0.4.8 +- **(release)** Prepare for v0.4.9 ## v0.4.8 ### 🐛 Bug Fixes -- *(ci)* Use deploy key because one action cant trigger the next :( -- *(ci)* Release workflow uses normal bot user to not cause a loop -- *(ci)* Release workflow should not remove old and add new tag +- **(ci)** Use deploy key because one action cant trigger the next :( +- **(ci)** Release workflow uses normal bot user to not cause a loop +- **(ci)** Release workflow should not remove old and add new tag ### ⚙️ Miscellaneous Tasks -- *(relase)* Prepare for v0.4.8 +- **(release)** Prepare for v0.4.8 ## v0.4.6 diff --git a/cliff.toml b/cliff.toml index d6f1ee7..1c3b0f5 100644 --- a/cliff.toml +++ b/cliff.toml @@ -23,7 +23,7 @@ body = """ {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | striptags | trim | upper_first }} {% for commit in commits %} - - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ + - {% if commit.scope %}**({{ commit.scope }})** {% endif %}\ {% if commit.breaking %}[**breaking**] {% endif %}\ {{ commit.message | upper_first }}\ {% endfor %}