chore: skip CI on draft PR (#12666)

This commit is contained in:
Amit Miran
2021-01-22 02:10:17 +02:00
committed by GitHub
parent 6280b34483
commit d80c2ed72a
7 changed files with 21 additions and 2 deletions

View File

@@ -7,9 +7,11 @@ on:
paths-ignore:
- "docs/**"
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
jobs:
cypress-matrix:
if: github.event.pull_request.draft == false
runs-on: ubuntu-20.04
strategy:
# when one test fails, DO NOT cancel the other
@@ -103,7 +105,7 @@ jobs:
name: screenshots
path: ${{ github.workspace }}/superset-frontend/cypress-base/cypress/screenshots
Cypress:
if: ${{ always() }}
if: github.event.pull_request.draft == false && ${{ always() }}
name: Cypress (chrome)
runs-on: ubuntu-20.04
needs: cypress-matrix