-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (74 loc) · 2.47 KB
/
manage-org.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: manage-org
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: {}
jobs:
checkconfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: 'stable'
check-latest: true
- name: run checkconfig
run: |
echo "TODO"
peribolos:
needs: checkconfig
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: 'stable'
check-latest: true
- name: run peribolos
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
go run k8s.io/test-infra/prow/cmd/peribolos@latest \
--github-token-path <(echo "$GH_TOKEN") --config-path ./config.yaml \
-fix-org -fix-org-members -fix-repos -fix-team-members -fix-team-repos -fix-teams -min-admins=2 --require-self=true \
--maximum-removal-delta=1 \
--confirm
branchprotector:
needs: checkconfig
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: 'stable'
check-latest: true
- name: run branchprotector
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
go run k8s.io/test-infra/prow/cmd/branchprotector@latest \
--github-token-path <(echo "$GH_TOKEN") --config-path ./config.yaml \
--confirm
labelsync:
needs: checkconfig
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: 'stable'
check-latest: true
- name: run labelsync
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
go run k8s.io/test-infra/label_sync@latest \
--github-token-path <(echo "$GH_TOKEN") --config ./labels.yaml \
--confirm