Commit 1b2b492c authored by tom's avatar tom

run workflow when unlabel WIP PR

parent 39f8b9b9
...@@ -2,6 +2,7 @@ name: Checks ...@@ -2,6 +2,7 @@ name: Checks
on: on:
workflow_dispatch: workflow_dispatch:
pull_request: pull_request:
types: [ opened, synchronize, unlabeled ]
paths-ignore: paths-ignore:
- '.github/ISSUE_TEMPLATE/**' - '.github/ISSUE_TEMPLATE/**'
- '.husky/**' - '.husky/**'
...@@ -30,7 +31,7 @@ jobs: ...@@ -30,7 +31,7 @@ jobs:
code_quality: code_quality:
name: Code quality name: Code quality
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "!contains(github.event.pull_request.labels.*.name, 'WIP')" if: ${{ !contains(github.event.pull_request.labels.*.name, 'WIP') && !(github.event.action == 'unlabeled' && github.event.label.name != 'WIP') }}
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v3 uses: actions/checkout@v3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment