From 04194cf3ee47b499b349afff07603f662ad29e21 Mon Sep 17 00:00:00 2001 From: GroovinChip Date: Wed, 16 Mar 2022 15:15:49 -0400 Subject: [PATCH] chore(flutter): don't run actions on draft PR's --- .github/workflows/stream_flutter_workflow.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/stream_flutter_workflow.yml b/.github/workflows/stream_flutter_workflow.yml index 16be547c5..33298866a 100644 --- a/.github/workflows/stream_flutter_workflow.yml +++ b/.github/workflows/stream_flutter_workflow.yml @@ -15,6 +15,7 @@ on: jobs: analyze: timeout-minutes: 15 + if: github.event.pull_request.draft == false runs-on: ubuntu-latest steps: - name: "Git Checkout" @@ -45,6 +46,7 @@ jobs: format: runs-on: ubuntu-latest + if: github.event.pull_request.draft == false timeout-minutes: 15 steps: - name: "Git Checkout" @@ -73,6 +75,7 @@ jobs: test: runs-on: macos-latest + if: github.event.pull_request.draft == false timeout-minutes: 20 steps: - name: "Git Checkout" @@ -123,3 +126,12 @@ jobs: with: path: packages/stream_chat_flutter/coverage/lcov.info min_coverage: 67 + + draft-build: + runs-on: ubuntu-latest + if: github.event.pull_request.draft == true + timeout-minutes: 1 + + steps: + - name: Run a one-line script + run: echo Draft PR, you are good. \ No newline at end of file