Skip to content

Commit

Permalink
fix(releaser): escape GH_EVENT_PAYLOAD JSON string argument
Browse files Browse the repository at this point in the history
Signed-off-by: Prashant Shahi <[email protected]>
  • Loading branch information
prashant-shahi committed Jan 9, 2025
1 parent 54200c3 commit 573c4c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ jobs:
GH_EVENT_NAME: ${{ inputs.GITHUB_EVENT_NAME }}
GH_EVENT_PAYLOAD: ${{ inputs.GITHUB_EVENT_PAYLOAD }}
run: |
GH_EVENT_PAYLOAD=$(echo "${GH_EVENT_PAYLOAD}" | jq -c .)
GH_EVENT_PAYLOAD=$(echo "${GH_EVENT_PAYLOAD}" | jq -c . | jq -rR .)
echo "compacted GH_EVENT_PAYLOAD: ${GH_EVENT_PAYLOAD}"
$MAKE github-event-trigger-workflow \
GITHUB_ARGS="-t ${{ steps.token.outputs.token }} \
-r ${GH_REPOSITORY} \
-e ${GH_EVENT_NAME} \
-p ${GH_EVENT_PAYLOAD} "
-p '${GH_EVENT_PAYLOAD}'"

0 comments on commit 573c4c6

Please sign in to comment.