Skip to content

Commit 4a195c1

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
steps:
1616
- name: Trigger 'Build and deploy' workflow in 'documentation' repo
1717
run: |
18+
DESCRIPTION=$(echo "${{ github.event.release.body }}" | jq -aRs .)
19+
1820
curl -L \
1921
-X POST \
2022
-H "Accept: application/vnd.github+json" \
2123
-H "Authorization: Bearer ${{ secrets.DOCUMENTATION_SLACK_FLOW_PAT }}" \
2224
-H "X-GitHub-Api-Version: 2022-11-28" \
2325
"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 }}\"}}"
26+
-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)