Skip to content

Commit 8d01b05

Browse files
committed
Attempt new workflow again
1 parent 3c9d1e6 commit 8d01b05

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/auto-bump-jdbc.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff 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."

0 commit comments

Comments
 (0)