Commit 8084e14 1 parent c9327b9 commit 8084e14 Copy full SHA for 8084e14
File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : json-schema-check
2
+
3
+ on :
4
+ pull_request :
5
+ workflow_dispatch :
6
+
7
+ jobs :
8
+ check-if-relevant-files-changed :
9
+ runs-on : ubuntu-22.04
10
+ outputs :
11
+ run-check : ${{ steps.paths_filter.outputs.json_or_yaml }}
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - uses : dorny/paths-filter@v3
15
+ id : paths_filter
16
+ with :
17
+ filters : |
18
+ json_or_yaml:
19
+ - '**/schema/*.schema.json'
20
+ - '**/config/*.param.yaml'
21
+
22
+ json-schema-check :
23
+ needs : check-if-relevant-files-changed
24
+ if : needs.check-if-relevant-files-changed.outputs.run-check == 'true'
25
+ runs-on : ubuntu-22.04
26
+ steps :
27
+ - name : Check out repository
28
+ uses : actions/checkout@v4
29
+
30
+ - name : Run json-schema-check
31
+ uses : autowarefoundation/autoware-github-actions/json-schema-check@v1
32
+
33
+ no-relevant-changes :
34
+ needs : check-if-relevant-files-changed
35
+ if : needs.check-if-relevant-files-changed.outputs.run-check == 'false'
36
+ runs-on : ubuntu-22.04
37
+ steps :
38
+ - name : Dummy step
39
+ run : echo "No relevant changes, passing check"
You can’t perform that action at this time.
0 commit comments