Skip to content

Commit 2b0f7be

Browse files
committed
improve workflows
1 parent e77c819 commit 2b0f7be

2 files changed

Lines changed: 8 additions & 13 deletions

File tree

.github/workflows/lint-openapi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: 'SFTI Lint Specifications: OpenAPI Compliance'
22

33
on:
4-
pull_request:
54
push:
65
branches:
76
- main

.github/workflows/pr.yaml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
name: 'SFTI Lint PRs'
22

33
on:
4-
pull_request:
4+
workflow_run:
5+
workflows:
6+
- 'SFTI Bundle API specification'
57
types:
6-
- opened
7-
- reopened
8-
- synchronize
9-
paths-ignore:
10-
- 'src/**'
8+
- completed
119

1210
jobs:
1311
bundle-run-status:
1412
uses: swissfintechinnovations/.github/.github/workflows/reusable-bundle-status-workflow.yaml@main
13+
with:
14+
bundle_status: ${{ github.event.workflow_run.conclusion }}
1515

1616
yaml-lint-src:
17-
needs: bundle-run-status
18-
if: ${{ always() }}
1917
uses: swissfintechinnovations/.github/.github/workflows/reusable-lint-yaml-workflow.yaml@main
2018
with:
2119
filenames: 'src/**.yaml'
2220

2321
yaml-lint:
24-
needs: bundle-run-status
25-
if: ${{ success() }}
22+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2623
uses: swissfintechinnovations/.github/.github/workflows/reusable-lint-yaml-workflow.yaml@main
2724
with:
2825
filenames: '*.yaml'
2926

3027
openapi-lint:
31-
needs: bundle-run-status
32-
if: ${{ success() }}
28+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
3329
uses: swissfintechinnovations/.github/.github/workflows/reusable-lint-openapi-workflow.yaml@main
3430
with:
3531
filenames: '*.yaml'

0 commit comments

Comments
 (0)