File tree Expand file tree Collapse file tree 3 files changed +25
-22
lines changed Expand file tree Collapse file tree 3 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -97,16 +97,19 @@ jobs:
97
97
run : |
98
98
export IS_PRERELEASE=$(node scripts/semver-is-prerelease.mjs ${{ steps.project-meta.outputs.next-version }});
99
99
100
- export START_ARG="--latest";
100
+ export OPT_TAG=--tag=${{ steps.project-meta.outputs.next-version }};
101
+
102
+ export OPT_TAG_PATTERN=--tag-pattern='^[0-9]+.[0-9]+.[0-9]+$';
101
103
if [ "true" == "$IS_PRERELEASE" ]; then
102
- export START_ARG="--unreleased" ;
104
+ export OPT_TAG_PATTERN=--tag-pattern='^[0-9]+.[0-9]+.[0-9]+(-beta|-rc|-alpha)?' ;
103
105
fi
104
106
105
107
git cliff \
106
108
--repository=${{ github.workspace }}/.git \
107
109
--config=./cliff.toml \
108
- $START_ARG \
109
- --tag=${{ steps.project-meta.outputs.next-version }} \
110
+ --unreleased \
111
+ $OPT_TAG \
112
+ $OPT_TAG_PATTERN \
110
113
--prepend=CHANGELOG.md
111
114
112
115
# Create release PR
Original file line number Diff line number Diff line change @@ -250,16 +250,26 @@ jobs:
250
250
GITHUB_TOKEN : ${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }}
251
251
GITHUB_REPO : ${{ github.repository }}
252
252
run : |
253
+ export OPT_START=--unreleased;
254
+ export OPT_TAG=;
253
255
if [ "tag" == "${{ github.ref_type }}" ]; then
254
- git cliff --repository=${{ github.workspace }}/.git --latest > CHANGELOG.current;
255
- else
256
- git cliff \
257
- --repository=${{ github.workspace }}/.git \
258
- --unreleased \
259
- --tag=${{ needs.meta.outputs.next-release-tag }} \
260
- > CHANGELOG.current;
256
+ export OPT_START=--current;
257
+ export OPT_TAG=--tag=${{ needs.meta.outputs.next-release-tag }};
261
258
fi
262
259
260
+ export OPT_TAG_PATTERN=--tag-pattern='^[0-9]+.[0-9]+.[0-9]+$';
261
+ if [ "true" == "${{ needs.meta.outputs.is-prerelease }}" ]; then
262
+ export OPT_TAG_PATTERN=--tag-pattern='^[0-9]+.[0-9]+.[0-9]+(-beta|-rc|-alpha)?';
263
+ fi
264
+
265
+ git cliff \
266
+ --repository=${{ github.workspace }}/.git \
267
+ --config=./cliff.toml \
268
+ $OPT_START \
269
+ $OPT_TAG \
270
+ $OPT_TAG_PATTERN \
271
+ > CHANGELOG.current;
272
+
263
273
- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
264
274
with :
265
275
path : artifacts
Original file line number Diff line number Diff line change @@ -74,14 +74,4 @@ topo_order = false
74
74
sort_commits = " newest"
75
75
76
76
# glob pattern for matching git tags
77
- tag_pattern = " ^[0-9]+.[0-9]+.[0-9]+(-beta|-rc|-alpha)?"
78
-
79
- # regex for skipping tags
80
- #
81
- # NOTE: we don't skip taks for beta/rc/alpha since we want their features
82
- # to be included in the next stable release
83
- #
84
- # skip_tags = "beta|rc|alpha"
85
-
86
- # tags to ignore
87
- ignore_tags = " beta|rc|alpha"
77
+ tag_pattern = " ^[0-9]+.[0-9]+.[0-9]+$"
You can’t perform that action at this time.
0 commit comments