From cf395771d71a57ed54ab7b9c61ad68e7febf9356 Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Thu, 5 Sep 2024 11:37:35 +0200 Subject: [PATCH] fix: make CI on PRs only run if not in draft mode https://github.com/reviewdog/action-eslint/issues/29 --- .github/workflows/ci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 08c83ca..a5996fb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,7 +7,10 @@ on: - '.github/workflows/ci.yaml' pull_request: branches: [master] - types: [opened, synchronize] + types: + - opened + - synchronize + - ready_for_review paths-ignore: - '.github/**' - 'CITATION.cff' @@ -28,6 +31,7 @@ jobs: build-type: [Debug, Release] fail-fast: false runs-on: ubuntu-latest + if: ${{ !github.event.pull_request.draft }} steps: - name: checkout-repo uses: actions/checkout@v4