Skip to content

Commit

Permalink
feat(repo): don't run CI on draft PRs (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd authored Dec 9, 2024
1 parent 5dade7a commit be2746b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci-build-test-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:

jobs:
build-test:
if: ${{ github.event.pull_request.draft == false }}
name: Build and test
runs-on: [taiko-runner]
timeout-minutes: 120
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-integration-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:

jobs:
build-run-integration:
if: ${{ github.event.pull_request.draft == false }}
name: Build and run integration
runs-on: [taiko-runner]
timeout-minutes: 120
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:

jobs:
clippy:
if: ${{ github.event.pull_request.draft == false }}
name: clippy
runs-on: [taiko-runner]
timeout-minutes: 30
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-sgx-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

jobs:
build-test-sgx-with-docker:
if: ${{ github.event.pull_request.draft == false }}
name: Build and test sgx with Docker
runs-on: [taiko-runner]
timeout-minutes: 60
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-sgx-hardware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: workflow_call

jobs:
build-test-sgx-hardware:
if: ${{ github.event.pull_request.draft == false }}
name: Build and test sgx in hardware
runs-on: [self-hosted, sgx, linux]
timeout-minutes: 120
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/openapi-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ concurrency:

jobs:
deploy-docs:
if: ${{ github.event.pull_request.draft == false }}
name: Generate OpenAPI docs
runs-on: [taiko-runner]
environment:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/repo--typo-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [pull_request]

jobs:
check-for-typos:
if: ${{ github.event.pull_request.draft == false }}
runs-on: [taiko-runner]
steps:
- name: Checkout the repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repo--validate-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
validate-pr-title:
if: github.event_name == 'pull_request_target'
if: ${{ github.event.pull_request.draft == false && github.event_name == 'pull_request_target' }}
runs-on: [taiko-runner]
steps:
- uses: amannn/action-semantic-pull-request@v5
Expand Down

0 comments on commit be2746b

Please sign in to comment.