When running the action-release Github Action, occasionally one might need to perform auto-detection of associated commits in a directory other than the job's working directory, such as in the case where an action performs multiple checkouts. As Github Actions do not, by default, support the ability to run an action in any directory other than the job's working directory, this change implements an argument for specifying which directory to gather sentry release information from.
51 lines
2.2 KiB
YAML
51 lines
2.2 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
|
|
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'
|