Skip to content

Commit e8e7fe6

Browse files
authored
fix: cd build worflow mess up release text issue
1 parent 06042a9 commit e8e7fe6

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/build_dist.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,15 @@ jobs:
5151
body: ${{ steps.latest_release.outputs.body }}
5252
with:
5353
script: |
54-
const body = process.env.body;
55-
return body.slice(1,-1);
54+
let body = process.env.body;
55+
console.log("Received Release Text:")
56+
console.log(body)
57+
body = body.slice(1,-1);
58+
body = body.replaceAll("\\r", "\r");
59+
body = body.replaceAll("\\n", "\n");
60+
console.log("Output Release Text:")
61+
console.log(body)
62+
return body;
5663
result-encoding: string
5764
- name: Re-create current release with new tag
5865
if: ${{ steps.is_patch.outputs.result == 'true' }}

0 commit comments

Comments
 (0)