Skip to content

Commit ef181b5

Browse files
committed
fix: Fix the release GitHub Actions workflow doesn't generate complete detailed changed description
The checkout GitHub Actions by default only fetch 1 revision on the tag event and doesn't fetch other tags, this patch sets sensible defaults so that the detailed changes text for the release can be properly generated. Fixes #22. Refer-to: Usage - actions/checkout: Action for checking out a repo <https://github.com/actions/checkout#usage> Signed-off-by: 林博仁(Buo-ren, Lin) <[email protected]>
1 parent 38e8840 commit ef181b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ jobs:
2020
steps:
2121
- name: Check out content from the Git repository
2222
uses: actions/checkout@v4
23+
with:
24+
# Increase fetch depth if you may have more than this amount
25+
# of revisions between releases
26+
fetch-depth: 100
27+
28+
# Fetch tags as well to generate detailed changes between two releases
29+
fetch-tags: true
2330

2431
- name: Determine the project identifier
2532
run: printf "project_id=${GITHUB_REPOSITORY##*/}\\n" >> $GITHUB_ENV

0 commit comments

Comments
 (0)