Skip to content
activity

GitHub Action

Sentry.io CLI Action

v1.0.1 Latest version

Sentry.io CLI Action

activity

Sentry.io CLI Action

Sentry.io CLI support for GitHub Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Sentry.io CLI Action

uses: NSCoder/sentry@v1.0.1

Learn more about this action in NSCoder/sentry

Choose a version

GitHub Action for Sentry.io

Action wraps the Sentry CLI to enable Sentry release management.

Usage

An example workflow to build a docker container from source and push and release the image to an existing application on Heroku:

workflow "Create new Sentry Release Version" {
  on = "push"
  resolves = "release version"
}

action "release version" {
  uses = "juankaram/sentry@master"
  needs = "push"
  args = "releases propose-version"
  secrets = ["SENTRY_AUTH_TOKEN"]
  env = {
    SENTRY_ORG     = "foo"
    SENTRY_PROJECT = "bar"
  }
}

Secrets

  • SENTRY_AUTH_TOKEN - Required. The authentication token to use for all communication with Sentry. (more info)

Environment variables

  • SENTRY_ORG - Optional. The slug of the organization to use for a command.
  • SENTRY_PROJECT - Optional. The slug of the project to use for a command.
  • SENTRY_URL - Optional. The URL to use to connect to sentry. This defaults to https://sentry.io/.

Attribution

Heavily inspired by GitHub Actions.

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.