-
Notifications
You must be signed in to change notification settings - Fork 39
39 lines (33 loc) · 1.06 KB
/
check-owners.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
# Copyright 2023 The Knative Authors.
# SPDX-License-Identifier: Apache-2.0
name: 'Check OWNER files'
on:
schedule:
- cron: '0 1,13 * * 1-5' # 6am/pm Pacific, weekdays.
workflow_dispatch: {}
jobs:
matrix:
runs-on: ubuntu-latest
outputs:
repos: ${{ steps.set-matrix.outputs.repos }}
steps:
- uses: actions/checkout@v4
- id: set-matrix
run: |
set -x
echo "repos=$(yq -o=json -I=0 '[ .[] | .name ]' repos.yaml)" >> $GITHUB_OUTPUT
check:
runs-on: ubuntu-latest
needs: matrix
strategy:
fail-fast: false
matrix:
repo: ${{ fromJson(needs.matrix.outputs.repos) }}
steps:
- name: OWNER_ALIASES up to date
if: always()
run: |
ORG="$(echo '${{ matrix.repo }}' | awk -F '/' '{print $1}')"
curl --fail -L https://raw.githubusercontent.com/${{ matrix.repo }}/main/OWNERS_ALIASES >repo-owners
curl --fail -L https://raw.githubusercontent.com/knative/community/main/peribolos/$ORG-OWNERS_ALIASES >community-owners
diff repo-owners community-owners