Skip to content

Commit dd21882

Browse files
committed
fix: have bot PRs autofixed by renovate
1 parent 26767ff commit dd21882

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: Pre-commit check
44
on:
55
pull_request:
66
branches: [main]
7+
types: [labeled, opened, reopened, synchronize]
78
workflow_dispatch:
89

910
env:
@@ -15,11 +16,16 @@ permissions:
1516
contents: read
1617
jobs:
1718
pre-commit:
19+
if: github.event.action != 'labeled' || github.event.label.name == 'pre-commit ci run'
1820
name: Pre-commit check
1921
runs-on: ubuntu-latest
2022
steps:
2123
- name: Checkout git repository
2224
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 }}
2329
- name: Setup python
2430
uses: actions/setup-python@v5
2531
with:

0 commit comments

Comments
 (0)