-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (54 loc) · 1.36 KB
/
caller.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Caller
on:
push:
jobs:
test-yaml:
name: Test YAML
runs-on: ubuntu-latest
outputs:
yaml-changes: ${{ steps.yaml-changes.outputs.yaml-files }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Check for YAML
uses: dorny/paths-filter@v3
id: yaml-changes
with:
filters: |
yaml-files:
- "**.yml"
- "**.yaml"
test-sh:
name: Test SH
runs-on: ubuntu-latest
outputs:
sh-changes: ${{ steps.sh-changes.outputs.sh-files }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Check for Sh
uses: dorny/paths-filter@v3
id: sh-changes
with:
filters: |
sh-files:
- "**.sh"
call-yaml:
name: Call YAML WF
needs:
- test-yaml
if: needs.test-yaml.outputs.yaml-changes == 'true'
uses: james-garriss/test-paths-filter/.github/workflows/yaml-called.yaml@main
call-sh:
name: Call Sh WF
needs:
- test-sh
if: needs.test-sh.outputs.sh-changes == 'true'
uses: james-garriss/test-paths-filter/.github/workflows/sh-called.yaml@main
call-build:
name: Call Build Wf
needs:
- call-yaml
- call-sh
if: ${{ always() }}
uses: james-garriss/test-paths-filter/.github/workflows/build-called.yaml@main