From 33f4b5ca5d0d45f8d9fd623a0075342c2d74672b Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Fri, 17 Sep 2021 22:17:26 +0300 Subject: [PATCH] github actions: escape multiline output in bootstrap_archives.yml --- .github/workflows/bootstrap_archives.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bootstrap_archives.yml b/.github/workflows/bootstrap_archives.yml index d8dea641903fa3..369aad866fcae0 100644 --- a/.github/workflows/bootstrap_archives.yml +++ b/.github/workflows/bootstrap_archives.yml @@ -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: | @@ -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 }}