Skip to content

Commit 8137f05

Browse files
committed
Require approval before starting a CI run
1 parent a54ed75 commit 8137f05

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- stable
2323
- beta
2424
- nightly
25+
environment: CI
2526
env:
2627
IMAGE_NAME: ghcr.io/integer32llc/rust-playground-ci-rust-${{ matrix.channel }}
2728
steps:
@@ -124,6 +125,7 @@ jobs:
124125
- clippy
125126
- miri
126127
- rustfmt
128+
environment: CI
127129
env:
128130
IMAGE_NAME: ghcr.io/integer32llc/rust-playground-ci-tool-${{ matrix.tool }}
129131
steps:
@@ -214,6 +216,7 @@ jobs:
214216
run_integration_tests:
215217
name: Running integration tests
216218
runs-on: ubuntu-latest
219+
environment: CI
217220
needs:
218221
- build_compiler_containers
219222
- build_tool_containers

.github/workflows/cron.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33
name: Scheduled rebuild
44
'on':
5-
workflow_dispatch:
5+
workflow_dispatch:
66
schedule:
77
- cron: 7 2 * * *
88
env:

ci/workflows.yml

+3
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ workflows:
221221
jobs:
222222
build_compiler_containers:
223223
<<: *build_compiler_containers_job
224+
environment: CI
224225
env:
225226
<<: *build_compiler_containers_job_env
226227

@@ -236,6 +237,7 @@ workflows:
236237

237238
build_tool_containers:
238239
<<: *build_tool_containers_job
240+
environment: CI
239241
env:
240242
<<: *build_tool_containers_job_env
241243

@@ -336,6 +338,7 @@ workflows:
336338
run_integration_tests:
337339
name: "Running integration tests"
338340
runs-on: ubuntu-latest
341+
environment: CI
339342
needs:
340343
- build_compiler_containers
341344
- build_tool_containers

0 commit comments

Comments
 (0)