From ec498ae7a2d0ab6d4fe0d7270010cac2adb2db5a Mon Sep 17 00:00:00 2001 From: Paddy Roddy Date: Wed, 1 Nov 2023 16:02:45 +0000 Subject: [PATCH] Don't run linting on draft PRs --- .github/workflows/linting.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index c0cbb6b..70cf1fb 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -6,6 +6,11 @@ on: - main - "renovate/**" pull_request: + types: + - opened + - ready_for_review + - reopened + - synchronize concurrency: cancel-in-progress: true @@ -15,6 +20,7 @@ concurrency: jobs: linting: + if: github.event.pull_request.draft == false runs-on: ubuntu-latest steps: - uses: UCL-MIRSG/.github/actions/linting@v0.26.0