-
-
Notifications
You must be signed in to change notification settings - Fork 61
34 lines (30 loc) · 991 Bytes
/
validate-sentry-options.yml
File metadata and controls
34 lines (30 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Validate Sentry Options Schema
on:
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
files-changed:
name: files-changed
runs-on: ubuntu-latest
outputs:
schemas: ${{ steps.changes.outputs.schemas }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Check for relevant file changes
uses: getsentry/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: changes
with:
filters: |
schemas:
- 'sentry-options/schemas/**'
validate-schema:
if: needs.files-changed.outputs.schemas == 'true'
needs: files-changed
name: Validate Schema Evolution
uses: getsentry/sentry-options/.github/workflows/validate-schema.yml@fa066c1d3ef0849153092a0272c17fc0bcce14c8
secrets: inherit
with:
schemas-path: sentry-options/schemas