Skip to content

Commit

Permalink
chore(flutter): don't run actions on draft PR's
Browse files Browse the repository at this point in the history
  • Loading branch information
GroovinChip committed Mar 16, 2022
1 parent 2c8d22b commit 04194cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/stream_flutter_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -45,6 +46,7 @@ jobs:
format:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
timeout-minutes: 15
steps:
- name: "Git Checkout"
Expand Down Expand Up @@ -73,6 +75,7 @@ jobs:
test:
runs-on: macos-latest
if: github.event.pull_request.draft == false
timeout-minutes: 20
steps:
- name: "Git Checkout"
Expand Down Expand Up @@ -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.

0 comments on commit 04194cf

Please sign in to comment.