Skip to content

Trigger CI only for non-draft PRs #1324

Trigger CI only for non-draft PRs

Trigger CI only for non-draft PRs #1324

Workflow file for this run

name: Lint
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Run pre-commit hooks
if: ${{ github.event.pull_request.draft == false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]