File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 5
5
workflow_dispatch :
6
6
7
7
jobs :
8
+ pre-check :
9
+ runs-on : ubuntu-latest
10
+ outputs :
11
+ run-check : ${{ steps.set-run-check.outputs.run }}
12
+ steps :
13
+ - uses : actions/checkout@v3
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
+ - id : set-run-check
22
+ run : echo "::set-output name=run::${{ steps.paths_filter.outputs.json_or_yaml == 'true' }}"
23
+
8
24
json-schema-check :
25
+ needs : pre-check
26
+ if : needs.pre-check.outputs.run-check == 'true'
9
27
runs-on : ubuntu-latest
10
28
steps :
11
29
- name : Check out repository
12
30
uses : actions/checkout@v3
13
31
14
32
- name : Run json-schema-check
15
33
uses : autowarefoundation/autoware-github-actions/json-schema-check@v1
34
+
35
+ no-relevant-changes :
36
+ needs : pre-check
37
+ if : needs.pre-check.outputs.run-check == 'false'
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - name : Dummy step
41
+ run : echo "No relevant changes, passing check"
You can’t perform that action at this time.
0 commit comments