disable CI/CD for draft PRs (#13784)

This commit is contained in:
Krishnan Parthasarathi 2021-11-29 23:35:07 -08:00 committed by GitHub
parent 42d11d9e7d
commit 5a22f2cf0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 6 deletions

View File

@ -4,6 +4,8 @@ on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@ -13,6 +15,7 @@ concurrency:
jobs: jobs:
build: build:
if: github.event.pull_request.draft == false
name: Build Tests with Go ${{ matrix.go-version }} on ${{ matrix.os }} name: Build Tests with Go ${{ matrix.go-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:

View File

@ -4,6 +4,8 @@ on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@ -13,6 +15,7 @@ concurrency:
jobs: jobs:
build: build:
if: github.event.pull_request.draft == false
name: Go ${{ matrix.go-version }} on ${{ matrix.os }} name: Go ${{ matrix.go-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:

View File

@ -4,6 +4,8 @@ on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@ -13,6 +15,7 @@ concurrency:
jobs: jobs:
build: build:
if: github.event.pull_request.draft == false
name: Go ${{ matrix.go-version }} on ${{ matrix.os }} name: Go ${{ matrix.go-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:

View File

@ -4,6 +4,8 @@ on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@ -13,6 +15,7 @@ concurrency:
jobs: jobs:
iam-matrix-test: iam-matrix-test:
if: github.event.pull_request.draft == false
name: "[Go=${{ matrix.go-version }}|ldap=${{ matrix.ldap }}|etcd=${{ matrix.etcd }}|openid=${{ matrix.openid }}]" name: "[Go=${{ matrix.go-version }}|ldap=${{ matrix.ldap }}|etcd=${{ matrix.etcd }}|openid=${{ matrix.openid }}]"
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -4,6 +4,8 @@ on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@ -13,6 +15,7 @@ concurrency:
jobs: jobs:
replication-test: replication-test:
if: github.event.pull_request.draft == false
name: Replication Tests with Go ${{ matrix.go-version }} name: Replication Tests with Go ${{ matrix.go-version }}
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -4,6 +4,7 @@ on:
pull_request: pull_request:
branches: branches:
- master - master
types: [opened, synchronize, reopened, ready_for_review]
# This ensures that previous jobs for the PR are canceled when the PR is # This ensures that previous jobs for the PR are canceled when the PR is
# updated. # updated.
@ -13,6 +14,7 @@ concurrency:
jobs: jobs:
build: build:
if: github.event.pull_request.draft == false
name: Go ${{ matrix.go-version }} on ${{ matrix.os }} name: Go ${{ matrix.go-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy: