-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.18 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
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: |
yaml-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