From c76d373552fbc25b5951fe5ae494b693d1bef136 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 28 Dec 2020 15:46:30 +0000 Subject: [PATCH] ci: do not run github actions for draft prs --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5128420..e8f66149 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,8 @@ on: jobs: lint: - name: Lint + name: Lint Code + if: github.event.pull_request.draft == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -28,6 +29,7 @@ jobs: macos: name: macOS Build + if: github.event.pull_request.draft == false strategy: matrix: node-version: [10.x, 12.x, 14.x] @@ -52,6 +54,7 @@ jobs: ubuntu: name: Ubuntu Build + if: github.event.pull_request.draft == false strategy: matrix: node-version: [10.x, 12.x, 14.x] @@ -76,6 +79,7 @@ jobs: windows: name: Windows Build + if: github.event.pull_request.draft == false strategy: matrix: node-version: [10.x, 12.x, 14.x] @@ -99,6 +103,7 @@ jobs: coverage: name: Aggregate Coverage Calculations + if: github.event.pull_request.draft == false needs: [macos, ubuntu, windows] runs-on: ubuntu-latest steps: