Skip to content

Commit e1bedaa

Browse files
KuronekoKuroneko
authored andcommitted
no message
1 parent cb54897 commit e1bedaa

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
- name: Install dependencies
2222
run: npm install
23-
23+
2424
- name: Install sub-project dependencies
2525
working-directory: projects/switch520-auto-secret
2626
run: npm install
@@ -29,10 +29,13 @@ jobs:
2929
working-directory: projects/switch520-auto-secret
3030
run: npm run build
3131

32-
# 可选:读取 Release Notes(用于后续 webhook / 发布)
33-
- name: Save release notes as file
34-
run: |
35-
echo "${{ github.event.release.body }}" > release-notes.txt
32+
- name: Save release notes as file
33+
uses: actions/github-script@v7
34+
with:
35+
script: |
36+
const fs = require('fs');
37+
const body = context.payload.release.body;
38+
fs.writeFileSync('release-notes.html', body);
3639
3740
- name: Upload build artifacts
3841
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)