Skip to content

Commit

Permalink
github actions: escape multiline output in bootstrap_archives.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Pliushch committed Sep 17, 2021
1 parent 4ee3dd0 commit 33f4b5c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/bootstrap_archives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ jobs:
path: ./
- name: Get checksums
id: get_checksums
run: echo "::set-output name=checksums::$(sha256sum *.zip)"
run: |
checksums=$(printf 'SHA-256:\n```\n%s\n```\n' "$(sha256sum *.zip)")
checksums="${checksums//'%'/'%25'}"
checksums="${checksums//$'\n'/'%0A'}"
checksums="${checksums//$'\r'/'%0D'}"
echo "::set-output name=checksums::$checksums"
- name: Create new tag
id: get_tag
run: |
Expand All @@ -63,4 +68,4 @@ jobs:
file_glob: true
release_name: "Bootstrap archives for Termux application"
tag: ${{ steps.get_tag.outputs.tag_name }}
body: "```${{ steps.get_checksums.outputs.checksums }}```"
body: ${{ steps.get_checksums.outputs.checksums }}

0 comments on commit 33f4b5c

Please sign in to comment.