Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add conditions to not run PRs on draft PRs #277

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize, ready_for_review]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-build
cancel-in-progress: true

jobs:
build-exposer:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest

steps:
Expand All @@ -30,6 +32,7 @@ jobs:
cd exposer && make build

build-registry:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest

steps:
Expand All @@ -46,6 +49,7 @@ jobs:
cd registry && make build

build-faucet:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
paths:
- "docker/**"
- ".github/workflows/docker.yaml"
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:

concurrency:
Expand All @@ -21,6 +22,7 @@ concurrency:

jobs:
build-push-types:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest

permissions:
Expand Down Expand Up @@ -68,6 +70,7 @@ jobs:
./scripts/build-docker.sh --type ${{ matrix.build-type }} --process all --version all --push --force

build-push-chains:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest

permissions:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ on:
paths:
- "docs/**"
- ".github/workflows/docs.yaml"
types: [opened, reopened, synchronize, ready_for_review]

jobs:
deploy:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/lint-check.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
name: Lint and Test Charts

on:
pull_request:
push:
branches:
- main
push:
pull_request:
branches:
- main
types: [ opened, reopened, synchronize, ready_for_review ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-lint
cancel-in-progress: true

jobs:
lint-test:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize, ready_for_review]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-pr-tests
cancel-in-progress: true

jobs:
pr-test:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest
timeout-minutes: 30

Expand Down
Loading