Skip to content

Commit

Permalink
ci: only show the latest release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Aug 24, 2024
1 parent 45fcc6a commit 1233bc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract latest release notes from CHANGELOG.md
id: extract_changelog
run: |
cat CHANGELOG.md | sed -n '/^## /{h; :a; n; /^## /{x; p; q;}; H; ba;}' > CHANGELOG.txt
- uses: softprops/action-gh-release@v2
with:
body_path: CHANGELOG.md
body_path: CHANGELOG.txt
1 change: 1 addition & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ commit_parsers = [
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore: bump version to", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
Expand Down

0 comments on commit 1233bc1

Please sign in to comment.