File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ name: Pre-commit check
4
4
on :
5
5
pull_request :
6
6
branches : [main]
7
+ types : [labeled, opened, reopened, synchronize]
7
8
workflow_dispatch :
8
9
9
10
env :
@@ -15,11 +16,16 @@ permissions:
15
16
contents : read
16
17
jobs :
17
18
pre-commit :
19
+ if : github.event.action != 'labeled' || github.event.label.name == 'pre-commit ci run'
18
20
name : Pre-commit check
19
21
runs-on : ubuntu-latest
20
22
steps :
21
23
- name : Checkout git repository
22
24
uses : actions/checkout@v4
25
+ - run : gh pr edit ${{ github.event.number }} --remove-label 'pre-commit ci run'
26
+ if : github.event.action == 'labeled' && github.event.label.name == 'pre-commit ci run'
27
+ env :
28
+ GH_TOKEN : ${{ github.token }}
23
29
- name : Setup python
24
30
uses : actions/setup-python@v5
25
31
with :
You can’t perform that action at this time.
0 commit comments