Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): bold scopes, cleanup, sed [unreleased] header #90

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
22 changes: 11 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [unreleased]
## v0.4.12

### 🐛 Bug Fixes

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
Loading