Skip to content

Commit a5a74e9

Browse files
committed
Workflow: Make description a literal
1 parent 75f83e6 commit a5a74e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
steps:
1616
- name: Trigger 'Build and deploy' workflow in 'documentation' repo
1717
run: |
18+
DESCRIPTION=$(echo "${{ github.event.release.body }}" | jq -aRs .)
1819
curl -L \
1920
-X POST \
2021
-H "Accept: application/vnd.github+json" \
2122
-H "Authorization: Bearer ${{ secrets.DOCUMENTATION_SLACK_FLOW_PAT }}" \
2223
-H "X-GitHub-Api-Version: 2022-11-28" \
2324
"https://api.github.com/repos/${{ env.OWNER }}/${{ env.REPO }}/dispatches" \
24-
-d "{\"event_type\": \"trigger-preview-build\", \"client_payload\": {\"environment\": \"preview\", \"hugo_theme_override\": \"\", \"description\": \"${{ github.event.release.body }}\", \"author\": \"${{ github.event.release.author.login }}\", \"tag_name\": \"${{ github.event.release.tag_name }}\", \"release_name\": \"${{ github.event.release.name }}\"}}"
25+
-d "{\"event_type\": \"trigger-preview-build\", \"client_payload\": {\"environment\": \"preview\", \"hugo_theme_override\": \"\", \"description\": \"$DESCRIPTION\", \"author\": \"${{ github.event.release.author.login }}\", \"tag_name\": \"${{ github.event.release.tag_name }}\", \"release_name\": \"${{ github.event.release.name }}\"}}"

0 commit comments

Comments
 (0)