8000 CI Move label removal to a separate workflow (#29456) · scikit-learn/scikit-learn@409d187 · GitHub
[go: up one dir, main page]

Skip to content

Commit 409d187

Browse files
authored
CI Move label removal to a separate workflow (#29456)
1 parent b0f86e7 commit 409d187

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

.github/workflows/cuda-gpu-ci.yml renamed to .github/workflows/cuda-ci.yml

-7
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ on:
77
types:
88
- labeled
99

10-
# In order to remove the "CUDA CI" label we need to have write permissions for PRs
11-
permissions:
12-
pull-requests: write
13-
1410
jobs:
1511
tests:
1612
if: contains(github.event.pull_request.labels.*.name, 'CUDA CI')
@@ -21,9 +17,6 @@ jobs:
2117
timeout-minutes: 20
2218
name: Run Array API unit tests
2319
steps:
24-
- uses: actions-ecosystem/action-remove-labels@v1
25-
with:
26-
labels: CUDA CI
2720
- uses: actions/setup-python@v5
2821
with:
2922
# XXX: The 3.12.4 release of Python on GitHub Actions is corrupted:
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Remove "CUDA CI" Label
2+
3+
# This workflow removes the "CUDA CI" label that triggers the actual
4+
# CUDA CI. It is separate so that we can use the `pull_request_target`
5+
# trigger which has a API token with write access.
6+
on:
7+
pull_request_target:
8+
types:
9+
- labeled
10+
11+
# In order to remove the "CUDA CI" label we need to have write permissions for PRs
12+
permissions:
13+
pull-requests: write
14+
15+
jobs:
16+
label-remover:
17+
if: contains(github.event.pull_request.labels.*.name, 'CUDA CI')
18+
name: Remove "CUDA CI" Label
19+
runs-on: ubuntu-20.04
20+
steps:
21+
- uses: actions-ecosystem/action-remove-labels@v1
22+
with:
23+
labels: CUDA CI

0 commit comments

Comments
 (0)
0