16
16
runs-on : ubuntu-18.04
17
17
concurrency :
18
18
group : peribolos
19
- outputs :
20
- peribolos-outcome : ${{ steps.peribolos.outcome }}
21
19
services :
22
20
ghproxy :
23
21
image : rkoster/ghproxy
40
38
uses : actions/setup-python@v3
41
39
with :
42
40
python-version : 3.9
43
- - uses : actions/checkout@v2
41
+ - uses : actions/checkout@v3
44
42
with :
45
- fetch-depth : 0 # full clone so a PR can be created if needed
46
43
path : community
47
44
- name : Generate github org configuration
48
45
run : |
57
54
GH_TOKEN : ${{ secrets.GH_TOKEN }}
58
55
GH_PRIVATE_KEY : ${{ secrets.GH_PRIVATE_KEY }}
59
56
- name : peribolos
60
- continue-on-error : true
61
57
id : peribolos
62
58
uses : docker://gcr.io/k8s-prow/peribolos
63
59
with :
77
73
--fix-teams
78
74
--fix-team-members
79
75
--fix-team-repos
80
- --allow-repo-archival
81
- - name : debug
82
- run : |
83
- echo "steps.peribolos.outcome = ${{ steps.peribolos.outcome }}"
84
- - name : Fail on peribolos error
85
- if : ${{ steps.peribolos.outcome == 'failure' }}
86
- run : |
87
- echo "sync job failed, trigger creation of dump PR"
88
- exit 1
89
-
90
- generate-peribolos-dump :
91
- needs : peribolos
92
- if : ${{ failure() && needs.peribolos.outputs.peribolos-outcome == 'failure' }} # only run on peribolos failures not on WG yaml validation errors
93
- runs-on : ubuntu-18.04
94
- concurrency :
95
- group : peribolos
96
- services :
97
- ghproxy :
98
- image : rkoster/ghproxy
99
- options : >-
100
- --mount type=bind,source=/etc/passwd,target=/etc/passwd,readonly
101
- --mount type=bind,source=/etc/group,target=/etc/group,readonly
102
- ports :
103
- - 8888:8888
104
- volumes :
105
- - ${{ github.workspace }}/ghproxy-cache:/cache
106
- steps :
107
- - name : ghproxy-cache
108
- uses : actions/cache@v3
109
- with :
110
- path : ${{ github.workspace }}/ghproxy-cache
111
- key : ghproxy-cache-${{ github.run_number }}
112
- restore-keys : |
113
- ghproxy-cache-
114
- - uses : actions/checkout@v2
115
- with :
116
- fetch-depth : 0 # full clone so a PR can be created if needed
117
- path : community
118
- - name : write github private key
119
- run : |
120
- echo "${GH_PRIVATE_KEY}" > private_key
121
- echo "${GH_TOKEN}" > token
122
- env :
123
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
124
- GH_PRIVATE_KEY : ${{ secrets.GH_PRIVATE_KEY }}
125
- - name : generate-peribolos-dump
126
- uses : docker://gcr.io/k8s-prow/peribolos
127
- with :
128
- entrypoint : /bin/sh
129
- # Switch back to app auth once following PR gets merged: https://github.com/kubernetes/test-infra/pull/24882
130
- # args: --dump-full --dump cloudfoundry --github-app-id=${{ secrets.GH_APP_ID }} --github-app-private-key-path=private_key > org/cloudfoundry.yml
131
- args : -c "/ko-app/peribolos --dump-full --dump cloudfoundry --github-endpoint http://ghproxy:8888 --github-token-path=token > community/org/cloudfoundry.yml"
132
- - name : Create Pull Request
133
- uses : peter-evans/create-pull-request@v4
134
- with :
135
- path : community
136
- add-paths : org/cloudfoundry.yml
137
- commit-message : Run peribolos -dump-full
138
- branch : peribolos-dump
139
- draft : true
140
- title : ' Sync org/cloudfoundry.yml with reality'
141
- body : |
142
- Peribolos failed to sync here: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
143
-
144
- This PR contains a fresh periobos dump which once merged should resolve the sync issues.
145
- PR is intended for debugging. Don't merge as-is because parts of the cloudfoundry org configuration are generated from WG charters.
146
- - name : Fail job on sync failure
147
- run : |
148
- echo "sync job failed, dump PR created"
149
- exit 1
76
+ --allow-repo-archival
0 commit comments