-
Notifications
You must be signed in to change notification settings - Fork 18
49 lines (37 loc) · 984 Bytes
/
validate-codeowners.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
name: validate-codeowners
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
defaults:
run:
shell: bash
concurrency:
group: ${{ github.ref_name }}.${{ github.sha }}.validate-codeowners
cancel-in-progress: true
jobs:
codeowners:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.get-codeowners.outputs.matrix }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup-environment
- name: Get codeowners
id: get-codeowners
run: npx nx run tools:action-codeowners
validate:
needs: codeowners
runs-on: ubuntu-latest
strategy:
matrix:
name: ${{ fromJSON(needs.codeowners.outputs.matrix) }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Validate a codeowner
uses: ./.github/actions/validate-codeowner
with:
name: ${{ matrix.name }}