40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: Sentry release
|
|
description: |
|
|
Composite action wrapper for scripts/ci/sentry-release.sh. Use this
|
|
from Gitea workflows that target a Gitea-Actions runner without
|
|
workflow_call support (Gitea < 1.21). Callers must already have the
|
|
repository checked out before invoking this action.
|
|
|
|
inputs:
|
|
project:
|
|
description: "Sentry project slug (boilerplate-api|boilerplate-worker|boilerplate-web)"
|
|
required: true
|
|
environment:
|
|
description: "Deployment environment label (production|staging|preview)"
|
|
required: true
|
|
release:
|
|
description: "Release identifier (typically gitea.sha)"
|
|
required: true
|
|
sourcemaps-path:
|
|
description: "Directory containing source-maps to upload, or 'none'"
|
|
required: false
|
|
default: "none"
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Verify sentry-cli is reachable
|
|
shell: bash
|
|
run: |
|
|
node -v
|
|
npx --yes @sentry/cli@2.41.1 --version
|
|
|
|
- name: Tag Sentry release
|
|
shell: bash
|
|
run: |
|
|
bash scripts/ci/sentry-release.sh \
|
|
--project "${{ inputs.project }}" \
|
|
--environment "${{ inputs.environment }}" \
|
|
--release "${{ inputs.release }}" \
|
|
--sourcemaps "${{ inputs.sourcemaps-path }}"
|