Skip to content

Commit 00c065d

Browse files
committed
ci: 工作流修正
1 parent de94e3d commit 00c065d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ jobs:
123123
# 输出
124124
echo -e "$CHANGELOG"
125125
126-
# 使用 -e 参数设置输出变量
127-
echo "changelog=$(echo -e "$CHANGELOG")" >> $GITHUB_OUTPUT
126+
# 将 changelog 写入文件
127+
echo -e "$CHANGELOG" > CHANGELOG.md
128128
shell: bash
129129

130130
# 打包发布文件
@@ -140,8 +140,6 @@ jobs:
140140
if: startsWith(github.ref, 'refs/tags/')
141141
with:
142142
files: "nrfr-client/nrfr-${{ steps.version.outputs.version }}-release.zip"
143-
body: |
144-
## 更新内容:
145-
${{ steps.version.outputs.changelog }}
143+
body_path: CHANGELOG.md
146144
env:
147145
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)