Skip to content

json

json #2

Workflow file for this run

name: Bugsnag Release
on:
push:
tags:
- '*' # déclenche sur tous les tags (ex: v1.0.0)
jobs:
notify-bugsnag:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Notify Bugsnag of release
run: |
curl -X POST https://api.bugsnag.com/deploys \
-H "Content-Type: application/json" \
-d "{
\"apiKey\": \"${{ secrets.BUGSNAG_API_KEY }}\",
\"appVersion\": \"${GITHUB_REF_NAME}\",
\"releaseStage\": \"production\",
\"builderName\": \"github-actions\",
\"sourceControl\": {
\"provider\": \"github\",
\"repository\": \"https://github.com/${GITHUB_REPOSITORY}\",
\"revision\": \"${GITHUB_SHA}\"
}
}"