From 298e1793a0682d3ba49432a383c058c7b66bdb96 Mon Sep 17 00:00:00 2001 From: Bajczi Levente Date: Fri, 7 Jul 2023 11:50:06 +0200 Subject: [PATCH] Fixed multiline string in github output --- .github/workflows/CD-create_release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CD-create_release.yml b/.github/workflows/CD-create_release.yml index 15d528bcad..19f7921705 100644 --- a/.github/workflows/CD-create_release.yml +++ b/.github/workflows/CD-create_release.yml @@ -41,16 +41,19 @@ jobs: export lasttag=$(git describe --abbrev=0 --tags) echo Last tag: $lasttag export subprojects=$(git diff $lasttag --name-only | grep 'subprojects' | awk -F '/' '{ print $2"/"$3 }' | sort | uniq) - export message=$(printf "${{ inputs.message }}\n\nModified subprojects (since $lasttag):\n${{steps.value.outputs.subprojects}}") + echo Modified subprojects: $subprojects + export message=$(printf "${{ inputs.message }}\n\nModified subprojects (since $lasttag):\n$subprojects") + echo Message: $message echo "version=$version" >> $GITHUB_OUTPUT echo "tagname=v$version" >> $GITHUB_OUTPUT - echo "subprojects=$subprojects" >> $GITHUB_OUTPUT - echo "message=$message" >> $GITHUB_OUTPUT + EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) + echo "message<<$EOF" >> $GITHUB_OUTPUT + echo $message >> $GITHUB_OUTPUT + echo "$EOF" >> $GITHUB_OUTPUT - name: Verify variables run: | echo version "${{steps.value.outputs.version}} echo tagname "${{steps.value.outputs.tagname}} - echo subprojects "${{steps.value.outputs.subprojects}} echo message "${{steps.value.outputs.message}} - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 with: