Skip to content

Commit 9cf4a09

Browse files
committed
fix(prepare-release): filter for v* tags in release workflow
1 parent d2b7974 commit 9cf4a09

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/reusable-prepare-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
GITHUB_REPO: ${{ github.repository }}
7575
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
7676
run: |
77-
npx git-cliff --config .change-log-config/src/cliff.toml --verbose --latest --strip all > pr_body_raw.md
77+
npx git-cliff --config .change-log-config/src/cliff.toml --verbose --latest --strip all --tag-pattern '^v[0-9].*' > pr_body_raw.md
7878
7979
- name: 📂 Save PR Body to File
8080
run: |
@@ -87,10 +87,10 @@ jobs:
8787
run: |
8888
if [ -f "CHANGELOG.md" ]; then
8989
# File exists: Prepend new changes (git-cliff intelligently handles headers).
90-
npx git-cliff --config .change-log-config/src/cliff.toml --verbose --latest --prepend CHANGELOG.md
90+
npx git-cliff --config .change-log-config/src/cliff.toml --verbose --latest --prepend CHANGELOG.md --tag-pattern '^v[0-9].*'
9191
else
9292
# File missing: Create new with full history and header.
93-
npx git-cliff --config .change-log-config/src/cliff.toml --verbose --output CHANGELOG.md
93+
npx git-cliff --config .change-log-config/src/cliff.toml --verbose --output CHANGELOG.md --tag-pattern '^v[0-9].*'
9494
fi
9595
9696
- name: 🔄 Sync Commit and Push

src/cliff.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ postprocessors = []
5454

5555

5656
[git]
57+
# pattern for matching git tags
58+
tag_pattern = "^v[0-9].*"
5759
conventional_commits = true
5860
filter_unconventional = true
5961
split_commits = false

0 commit comments

Comments
 (0)