-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.36 KB
/
manifest.yml
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: manifest
on: pull_request
jobs:
gen-matrix:
runs-on: ubuntu-latest
outputs:
changed-dirs: ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
steps:
- name: Get whether release-name dir changed
id: changed-files
uses: tj-actions/changed-files@v45
with:
dir_names: "true"
dir_names_exclude_current_dir: "true"
dir_names_max_depth: 2
matrix: "true"
files: |
apps/**
# debug
- name: List all changed dirs
run: |
echo '${{ steps.changed-files.outputs.all_changed_and_modified_files }}' | jq
diff:
needs: gen-matrix
if: ${{ needs.gen-matrix.outputs.changed-dirs != '[]' }}
strategy:
matrix:
changed-dir: ${{ fromJson(needs.gen-matrix.outputs.changed-dirs) }}
uses: ./.github/workflows/reusable-diff.yml
with:
changed-dir: ${{ matrix.changed-dir }}
polaris:
needs: gen-matrix
if: ${{ needs.gen-matrix.outputs.changed-dirs != '[]' }}
strategy:
matrix:
changed-dir: ${{ fromJson(needs.gen-matrix.outputs.changed-dirs) }}
uses: ./.github/workflows/reusable-polaris.yml
with:
changed-dir: ${{ matrix.changed-dir }}
status-check:
runs-on: ubuntu-latest
needs:
- gen-matrix
permissions: {}
if: failure()
steps:
- run: exit 1