Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/validate-sentry-options.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Validate Sentry Options Schema

on:
pull_request:
paths:
- 'sentry-options/schemas/**'
- 'uv.lock'
- '.github/workflows/validate-sentry-options.yml'
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
cli-version:
name: Determine sentry-options CLI version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
sparse-checkout: uv.lock
sparse-checkout-cone-mode: false
- name: Parse sentry-options version from uv.lock
id: version
run: |
echo -n "version=" >> "$GITHUB_OUTPUT"
yq -p toml -oy '.package[] | select(.name == "sentry-options") | .version' uv.lock >> "$GITHUB_OUTPUT"

validate-schema:
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
needs: cli-version
name: Validate Schema Evolution
uses: getsentry/sentry-options/.github/workflows/validate-schema.yml@2cc89b0011942ca3593f5c20e89de2baa414ed41 # 1.2.9
secrets: inherit
with:
schemas-path: sentry-options/schemas
cli-version: ${{ needs.cli-version.outputs.version }}
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Loading