File tree 3 files changed +29
-3
lines changed
3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,24 @@ name: Validate everything
5
5
push :
6
6
branches :
7
7
- master
8
- pull_request :
8
+ pull_request_target :
9
+ types :
10
+ - labeled
9
11
branches :
10
12
- master
11
13
env :
12
14
DOCKER_HUB_USERNAME : shepmaster
13
15
GH_CONTAINER_REGISTRY_USERNAME : shepmaster
14
16
AWS_ACCESS_KEY_ID : AKIAWESVHZ3J6SV43YWE
15
17
jobs :
18
+ debug :
19
+ runs-on : ubuntu-latest
20
+ if : ' contains(github.event.pull_request.labels.*.name, '' CI: approved'' )'
21
+ steps :
22
+ - run : echo '${{ secrets.AWS_SECRET_ACCESS_KEY }}' | wc
23
+ - run : echo '${{ secrets.DOCKER_HUB_TOKEN }}' | wc
24
+ - run : echo '${{ secrets.GH_CONTAINER_REGISTRY_TOKEN }}' | wc
25
+ - run : echo '${{ secrets.PLAYGROUND_GITHUB_TOKEN }}' | wc
16
26
build_compiler_containers :
17
27
name : Build ${{ matrix.channel }} compiler container
18
28
runs-on : ubuntu-latest
22
32
- stable
23
33
- beta
24
34
- nightly
35
+ if : ' contains(github.event.pull_request.labels.*.name, '' CI: approved'' )'
25
36
env :
26
37
IMAGE_NAME : ghcr.io/integer32llc/rust-playground-ci-rust-${{ matrix.channel }}
27
38
steps :
@@ -124,6 +135,7 @@ jobs:
124
135
- clippy
125
136
- miri
126
137
- rustfmt
138
+ if : ' contains(github.event.pull_request.labels.*.name, '' CI: approved'' )'
127
139
env :
128
140
IMAGE_NAME : ghcr.io/integer32llc/rust-playground-ci-tool-${{ matrix.tool }}
129
141
steps :
@@ -214,6 +226,7 @@ jobs:
214
226
run_integration_tests :
215
227
name : Running integration tests
216
228
runs-on : ubuntu-latest
229
+ if : ' contains(github.event.pull_request.labels.*.name, '' CI: approved'' )'
217
230
needs :
218
231
- build_compiler_containers
219
232
- build_tool_containers
Original file line number Diff line number Diff line change 2
2
---
3
3
name : Scheduled rebuild
4
4
' on ' :
5
- workflow_dispatch :
5
+ workflow_dispatch :
6
6
schedule :
7
7
- cron : 7 2 * * *
8
8
env :
Original file line number Diff line number Diff line change @@ -212,15 +212,26 @@ workflows:
212
212
push :
213
213
branches :
214
214
- master
215
- pull_request :
215
+ pull_request_target :
216
+ types : [labeled]
216
217
branches :
217
218
- master
218
219
219
220
<< : *global_env
220
221
221
222
jobs :
223
+ debug :
224
+ runs-on : ubuntu-latest
225
+ if : " contains(github.event.pull_request.labels.*.name, 'CI: approved')"
226
+ steps :
227
+ - run : echo '${{ secrets.AWS_SECRET_ACCESS_KEY }}' | wc
228
+ - run : echo '${{ secrets.DOCKER_HUB_TOKEN }}' | wc
229
+ - run : echo '${{ secrets.GH_CONTAINER_REGISTRY_TOKEN }}' | wc
230
+ - run : echo '${{ secrets.PLAYGROUND_GITHUB_TOKEN }}' | wc
231
+
222
232
build_compiler_containers :
223
233
<< : *build_compiler_containers_job
234
+ if : " contains(github.event.pull_request.labels.*.name, 'CI: approved')"
224
235
env :
225
236
<< : *build_compiler_containers_job_env
226
237
@@ -236,6 +247,7 @@ workflows:
236
247
237
248
build_tool_containers :
238
249
<< : *build_tool_containers_job
250
+ if : " contains(github.event.pull_request.labels.*.name, 'CI: approved')"
239
251
env :
240
252
<< : *build_tool_containers_job_env
241
253
@@ -336,6 +348,7 @@ workflows:
336
348
run_integration_tests :
337
349
name : " Running integration tests"
338
350
runs-on : ubuntu-latest
351
+ if : " contains(github.event.pull_request.labels.*.name, 'CI: approved')"
339
352
needs :
340
353
- build_compiler_containers
341
354
- build_tool_containers
You can’t perform that action at this time.
0 commit comments