Skip to content

Commit c9830c3

Browse files
committed
fix: 修复发布工作流中的变更记录生成问题
1 parent 335df14 commit c9830c3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,11 @@ jobs:
261261
runs-on: ubuntu-latest
262262
needs: [android, windows, macos, ios, linux]
263263
steps:
264+
- name: Checkout
265+
uses: actions/checkout@v4
266+
with:
267+
fetch-depth: 0
268+
264269
- name: Prepare release metadata
265270
id: meta
266271
shell: bash
@@ -353,11 +358,10 @@ jobs:
353358
else
354359
COMMITS=$(git log --no-merges --pretty=format:"- %s ([%h](https://github.com/${GITHUB_REPOSITORY}/commit/%H))")
355360
fi
356-
cat > RELEASE_NOTES.md <<'EOF'
357-
361+
cat > RELEASE_NOTES.md <<EOF
358362
## 变更记录
359363
360-
$COMMITS
364+
${COMMITS}
361365
362366
EOF
363367
echo "notes_file=RELEASE_NOTES.md" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)