Adds support for `dist` as input value for GitHub Action:
```yaml
- uses: getsentry/action-release@v1
with:
environment: 'production'
sourcemaps: './lib'
dist: ${{ github.sha }}
```
Note that this repo uses `@sentry/cli@^1.67.2` and there is a related fix in `2.3.1`:
> fix: move dist option to SentryCliUploadSourceMapsOptions (#1269) by @ikenfin
> [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#231)
The fix was to move the `dist` option from being under `SentryCliOptions` (incorrect) to be under `SentryCliUploadSourceMapsOptions` (correct)
This does not affect the GH action as those types are not referenced directly by the action.
Resolves getsentry/action-release#74
---------
Co-authored-by: Armen Zambrano G <[email protected]>
54 lines
2.3 KiB
YAML
54 lines
2.3 KiB
YAML
name: 'Sentry Release'
|
|
description: 'GitHub Action for creating a release on Sentry'
|
|
author: 'Sentry'
|
|
inputs:
|
|
environment:
|
|
description: 'Set the environment for this release. E.g. "production" or "staging". Omit to skip adding deploy to release.'
|
|
required: false
|
|
sourcemaps:
|
|
description: 'Space-separated list of paths to JavaScript sourcemaps. Omit to skip uploading sourcemaps.'
|
|
required: false
|
|
dist:
|
|
description: 'Unique identifier for the distribution, used to further segment your release. Usually your build number.'
|
|
required: false
|
|
finalize:
|
|
description: 'When false, omit marking the release as finalized and released.'
|
|
default: true
|
|
ignore_missing:
|
|
description: 'When the flag is set and the previous release commit was not found in the repository, will create a release with the default commits count instead of failing the command.'
|
|
required: false
|
|
ignore_empty:
|
|
description: 'When the flag is set, command will not fail and just exit silently if no new commits for a given release have been found.'
|
|
required: false
|
|
started_at:
|
|
description: 'Unix timestamp of the release start date. Omit for current time.'
|
|
required: false
|
|
version:
|
|
description: 'Identifier that uniquely identifies the releases. Omit to auto-generate one.'
|
|
required: false
|
|
version_prefix:
|
|
description: 'Value prepended to auto-generated version.'
|
|
required: false
|
|
set_commits:
|
|
description: 'Specify whether to set commits for the release. Either "auto" or "skip".'
|
|
required: false
|
|
projects:
|
|
description: 'Space-separated list of projects. Defaults to the env variable "SENTRY_PROJECT" if not provided.'
|
|
required: false
|
|
url_prefix:
|
|
description: 'Adds a prefix to source map urls after stripping them.'
|
|
required: false
|
|
strip_common_prefix:
|
|
description: 'Will remove a common prefix from uploaded filenames. Useful for removing a path that is build-machine-specific.'
|
|
required: false
|
|
working_directory:
|
|
description: 'Directory to collect sentry release information from. Useful when collecting information from a non-standard checkout directory.'
|
|
required: false
|
|
runs:
|
|
using: 'docker'
|
|
# If you change this, update the use-local-dockerfile action
|
|
image: 'docker://ghcr.io/getsentry/action-release-image:latest'
|
|
branding:
|
|
icon: 'triangle'
|
|
color: 'purple'
|