Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
THYDUX authored Jan 24, 2025
1 parent 4b1bbfd commit a513a69
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions per commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -1,13 +1,19 @@
on:
pull_request:
+ types: [labeled, opened, reopened, synchronize]
push:
branches: [main, test-me-*]

jobs:
main:
+ if: "github.event.action != 'labeled' || github.event.label.name == 'pre-commit ci run'"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
+ - run: gh pr edit ${{ github.event.number }} --remove-label 'pre-commit ci run'
+ if: github.event.action == 'labeled' && github.event.label.name == 'pre-commit ci run'
+ env:
+ GH_TOKEN: ${{ github.token }}
- uses: actions/setup-python@v4
with:
python-version: 3.x

0 comments on commit a513a69

Please sign in to comment.