GitHub Action for reporting builds to Bugsnag using the Build API. This action will use the Github tag for the version by default. For more information about the Build API, see here
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Report build to bugsnag
uses: sazap10/bugsnag-builds-action@master
env:
BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }}
action "Filter tag" {
uses = "actions/bin/filter@master"
args = "tag"
}
action "Report build" {
needs = "Filter tag"
uses = "sazap10/bugsnag-builds-action@master"
secrets = ["BUGSNAG_API_KEY"]
}
BUGSNAG_API_KEY
Required - The notifier API key of the project.
BUILD_API_URL
(optional) - Overrides the default build API url. Defaults tohttps://build.bugsnag.com
RELEASE_STAGE
(optional) - Overrides the default release stage. Defaults toproduction
BUILDER_NAME
(optional) - Overrides the default builder name. Defaults toBugsnag build reporting
METADATA
(optional) - Overrides the default metadata. This should be valid JSON. Defaults to{}
.AUTO_ASSIGN_RELEASE
(optional) - Flag indicating whether to automatically associate this build with any new error events and sessions that are received for the release stage until a subsequent build notification is received for the release stage. Defaults tofalse
VERSION
(optional) - Overrides the default reported app version. Defaults to the Github tag.
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.