Skip to content

Commit

Permalink
Fixed multiline string in github output
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi authored Jul 7, 2023
1 parent e672159 commit 298e179
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/CD-create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 298e179

Please sign in to comment.