File tree Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,6 @@ name: 'SFTI Bundle API specification'
2
2
# caution: do not rename filename as pr workflow depends on its name
3
3
4
4
on :
5
- pull_request :
6
- types :
7
- - opened
8
- - reopened
9
- - synchronize
10
- paths :
11
- - ' src/**'
12
5
workflow_dispatch :
13
6
inputs :
14
7
filenames :
Original file line number Diff line number Diff line change 6
6
- opened
7
7
- reopened
8
8
- synchronize
9
- paths-ignore :
10
- - ' src/**'
11
9
12
10
jobs :
13
- bundle-run-status :
14
- if : ${{ always() }}
15
- uses : swissfintechinnovations/.github/.github/workflows/reusable-bundle-status-workflow.yaml@main
11
+ bundle :
12
+ uses : swissfintechinnovations/.github/.github/workflows/reusable-bundle-workflow.yaml@main
13
+ secrets : inherit
16
14
17
15
yaml-lint-src :
18
- needs : bundle-run-status
19
- if : ${{ always() }}
16
+ needs : bundle
17
+ if : ${{ always() && needs.bundle.result != 'failure' && github.event.pull_request.head.sha == needs.bundle.outputs.commit-sha }}
20
18
uses : swissfintechinnovations/.github/.github/workflows/reusable-lint-yaml-workflow.yaml@main
21
19
with :
22
20
filenames : ' src/**.yaml'
23
21
24
22
yaml-lint :
25
- needs : bundle-run-status
26
- if : ${{ always() }}
23
+ needs : bundle
24
+ if : ${{ always() && needs.bundle.result != 'failure' && github.event.pull_request.head.sha == needs.bundle.outputs.commit-sha }}
27
25
uses : swissfintechinnovations/.github/.github/workflows/reusable-lint-yaml-workflow.yaml@main
28
26
with :
29
27
filenames : ' *.yaml'
30
28
31
29
openapi-lint :
32
- needs : bundle-run-status
33
- if : ${{ always() }}
30
+ needs : bundle
31
+ if : ${{ always() && needs.bundle.result != 'failure' && github.event.pull_request.head.sha == needs.bundle.outputs.commit-sha }}
34
32
uses : swissfintechinnovations/.github/.github/workflows/reusable-lint-openapi-workflow.yaml@main
35
33
with :
36
34
filenames : ' *.yaml'
You can’t perform that action at this time.
0 commit comments