File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,26 @@ jobs:
134134 # Pass the new version info if needed by the triggered workflow
135135 NEW_VER_PAYLOAD : ${{ env.NEW_VER }}
136136 run : |
137+ set -e # Exit on error
137138 echo "Bump occurred. Sending repository_dispatch event: sqlite_jdbc_bumped"
138- gh api \
139+
140+ # Construct the full JSON payload using a heredoc
141+ JSON_PAYLOAD=$(cat <<EOF
142+ {
143+ "event_type": "sqlite_jdbc_bumped",
144+ "client_payload": {
145+ "version": "${NEW_VER_PAYLOAD}",
146+ "reason": "Auto-bump completed"
147+ }
148+ }
149+ EOF
150+ )
151+
152+ # Pipe the JSON payload into gh api using --input -
153+ echo "$JSON_PAYLOAD" | gh api \
139154 --method POST \
140155 -H "Accept: application/vnd.github.v3+json" \
141156 /repos/${{ github.repository }}/dispatches \
142- -f event_type='sqlite_jdbc_bumped' \
143- -f client_payload='{"version": "${{ env.NEW_VER_PAYLOAD }}", "reason": "Auto-bump completed"}'
157+ --input -
158+
144159 echo "Dispatch event sent."
You can’t perform that action at this time.
0 commit comments