github actions: escape multiline output in bootstrap_archives.yml
This commit is contained in:
parent
4ee3dd0051
commit
33f4b5ca5d
9
.github/workflows/bootstrap_archives.yml
vendored
9
.github/workflows/bootstrap_archives.yml
vendored
@ -40,7 +40,12 @@ jobs:
|
|||||||
path: ./
|
path: ./
|
||||||
- name: Get checksums
|
- name: Get checksums
|
||||||
id: 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
|
- name: Create new tag
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: |
|
run: |
|
||||||
@ -63,4 +68,4 @@ jobs:
|
|||||||
file_glob: true
|
file_glob: true
|
||||||
release_name: "Bootstrap archives for Termux application"
|
release_name: "Bootstrap archives for Termux application"
|
||||||
tag: ${{ steps.get_tag.outputs.tag_name }}
|
tag: ${{ steps.get_tag.outputs.tag_name }}
|
||||||
body: "```${{ steps.get_checksums.outputs.checksums }}```"
|
body: ${{ steps.get_checksums.outputs.checksums }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user