Skip to content

Commit 477b6a3

Browse files
committed
Fixup: multi-line build description in workflow
1 parent 6e35a9a commit 477b6a3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/khronos-binaries.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ jobs:
2424
run: node build.binaries.mjs
2525
- name: Read build description
2626
id: build_description
27-
run: echo "::set-output name=DESCRIPTION::$(cat build.txt)"
27+
run: |
28+
content=`cat ./build.txt`
29+
# handle multi-line content
30+
content="${content//'%'/'%25'}"
31+
content="${content//$'\n'/'%0A'}"
32+
content="${content//$'\r'/'%0D'}"
33+
# end of handle multi-line content
34+
echo "::set-output name=DESCRIPTION::$content"
2835
- name: Release
2936
uses: softprops/action-gh-release@v1
3037
# if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)