Skip to content

Commit 229a0e7

Browse files
committed
json
1 parent ff4b81c commit 229a0e7

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/bugsnag.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ jobs:
1414

1515
- name: Notify Bugsnag of release
1616
run: |
17-
curl https://build.bugsnag.com/ \
18-
-d apiKey=${{ secrets.BUGSNAG_API_KEY }} \
19-
-d appVersion=${GITHUB_REF_NAME} \
20-
-d releaseStage=production \
21-
-d builderName=github-actions \
22-
-d sourceControl.provider=github \
23-
-d sourceControl.repository=https://github.com/${GITHUB_REPOSITORY} \
24-
-d sourceControl.revision=${GITHUB_SHA}
17+
curl -X POST https://api.bugsnag.com/deploys \
18+
-H "Content-Type: application/json" \
19+
-d "{
20+
\"apiKey\": \"${{ secrets.BUGSNAG_API_KEY }}\",
21+
\"appVersion\": \"${GITHUB_REF_NAME}\",
22+
\"releaseStage\": \"production\",
23+
\"builderName\": \"github-actions\",
24+
\"sourceControl\": {
25+
\"provider\": \"github\",
26+
\"repository\": \"https://github.com/${GITHUB_REPOSITORY}\",
27+
\"revision\": \"${GITHUB_SHA}\"
28+
}
29+
}"

0 commit comments

Comments
 (0)