Skip to content

Commit

Permalink
Escape line-feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
pierlon committed Jun 9, 2020
1 parent 9b2db09 commit 8c46356
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ jobs:

- name: Get comment body
id: get-comment-body
# Setting a multi-line output requires escaping line-feeds. See <https://github.community/t/set-output-truncates-multiline-strings/16852/3>.
run: |
echo "::set-output name=body::$(cat <<EOF
Plugin builds for ${{ github.sha }} are ready :cook:!
body="Plugin builds for ${{ github.sha }} are ready :cook:!
- Download the development build [here](https://storage.googleapis.com/ampwp_github_artifacts/${{ github.ref }}/dev/amp.zip)
- Download the production build [here](https://storage.googleapis.com/ampwp_github_artifacts/${{ github.ref }}/prod/amp.zip)
EOF
)"
- Download the production build [here](https://storage.googleapis.com/ampwp_github_artifacts/${{ github.ref }}/prod/amp.zip)"
body="${body//$'\n'/'%0A'}"
echo "::set-output name=body::$body"
- name: Create comment on PR with links to plugin builds
if: ${{ steps.find-comment.outputs.comment-id == '' }}
Expand Down

0 comments on commit 8c46356

Please sign in to comment.