forked from cartsnitch/cartsnitch
fix(ci): fix trigger-uat JSON data construction
Use --data-raw with properly formatted multi-line JSON instead of a single-line escaped -d string. This ensures newlines in the description are correctly interpreted. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -154,4 +154,11 @@ jobs:
|
||||
-H "Authorization: Bearer ${{ secrets.PAPERCLIP_API_KEY }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"${{ secrets.PAPERCLIP_API_URL }}/api/companies/${{ secrets.PAPERCLIP_COMPANY_ID }}/issues" \
|
||||
-d "{\"title\":\"UAT: cartsnitch ${{ needs.build-and-push.outputs.calver_tag }} deployed to dev\",\"description\":\"## UAT Required\\\\n\\\\nService: cartsnitch (frontend)\\\\nImage: ghcr.io/cartsnitch/cartsnitch:${{ needs.build-and-push.outputs.calver_tag }}\\\\nCommit: ${{ github.sha }}\\\\nWorkflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\\\\n\\\\nPlease run full regression against cartsnitch.dev.farh.net\",\"status\":\"todo\",\"priority\":\"high\",\"assigneeAgentId\":\"1fc33bd9-308c-4abf-a355-87d12b6b0064\",\"projectId\":\"05f7827d-54df-4ff8-9b27-293ffba6e049\"}"
|
||||
--data-raw '{
|
||||
"title": "UAT: cartsnitch ${{ needs.build-and-push.outputs.calver_tag }} deployed to dev",
|
||||
"description": "## UAT Required\n\nService: cartsnitch (frontend)\nImage: ghcr.io/cartsnitch/cartsnitch:${{ needs.build-and-push.outputs.calver_tag }}\nCommit: ${{ github.sha }}\nWorkflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n\nPlease run full regression against cartsnitch.dev.farh.net",
|
||||
"status": "todo",
|
||||
"priority": "high",
|
||||
"assigneeAgentId": "1fc33bd9-308c-4abf-a355-87d12b6b0064",
|
||||
"projectId": "05f7827d-54df-4ff8-9b27-293ffba6e049"
|
||||
}'
|
||||
|
||||
Reference in New Issue
Block a user