Skip to content

Commit 33f4b5c

Browse files
author
Leonid Pliushch
committed
github actions: escape multiline output in bootstrap_archives.yml
1 parent 4ee3dd0 commit 33f4b5c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/bootstrap_archives.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ jobs:
4040
path: ./
4141
- name: Get checksums
4242
id: get_checksums
43-
run: echo "::set-output name=checksums::$(sha256sum *.zip)"
43+
run: |
44+
checksums=$(printf 'SHA-256:\n```\n%s\n```\n' "$(sha256sum *.zip)")
45+
checksums="${checksums//'%'/'%25'}"
46+
checksums="${checksums//$'\n'/'%0A'}"
47+
checksums="${checksums//$'\r'/'%0D'}"
48+
echo "::set-output name=checksums::$checksums"
4449
- name: Create new tag
4550
id: get_tag
4651
run: |
@@ -63,4 +68,4 @@ jobs:
6368
file_glob: true
6469
release_name: "Bootstrap archives for Termux application"
6570
tag: ${{ steps.get_tag.outputs.tag_name }}
66-
body: "```${{ steps.get_checksums.outputs.checksums }}```"
71+
body: ${{ steps.get_checksums.outputs.checksums }}

0 commit comments

Comments
 (0)