diff --git a/.github/workflows/ci-build-test-reusable.yml b/.github/workflows/ci-build-test-reusable.yml index be98f592b..9eac6222a 100644 --- a/.github/workflows/ci-build-test-reusable.yml +++ b/.github/workflows/ci-build-test-reusable.yml @@ -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 diff --git a/.github/workflows/ci-integration-reusable.yml b/.github/workflows/ci-integration-reusable.yml index 01749abad..73fd7aff8 100644 --- a/.github/workflows/ci-integration-reusable.yml +++ b/.github/workflows/ci-integration-reusable.yml @@ -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 diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index 8cdaa66a6..bac31f6b3 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -12,6 +12,7 @@ env: jobs: clippy: + if: ${{ github.event.pull_request.draft == false }} name: clippy runs-on: [taiko-runner] timeout-minutes: 30 diff --git a/.github/workflows/ci-sgx-docker.yml b/.github/workflows/ci-sgx-docker.yml index 9050bd3d3..58825bf33 100644 --- a/.github/workflows/ci-sgx-docker.yml +++ b/.github/workflows/ci-sgx-docker.yml @@ -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 diff --git a/.github/workflows/ci-sgx-hardware.yml b/.github/workflows/ci-sgx-hardware.yml index 6efa67ae8..3e0943853 100644 --- a/.github/workflows/ci-sgx-hardware.yml +++ b/.github/workflows/ci-sgx-hardware.yml @@ -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 diff --git a/.github/workflows/openapi-deploy.yml b/.github/workflows/openapi-deploy.yml index e1e57b187..952657252 100644 --- a/.github/workflows/openapi-deploy.yml +++ b/.github/workflows/openapi-deploy.yml @@ -20,6 +20,7 @@ concurrency: jobs: deploy-docs: + if: ${{ github.event.pull_request.draft == false }} name: Generate OpenAPI docs runs-on: [taiko-runner] environment: diff --git a/.github/workflows/repo--typo-check.yml b/.github/workflows/repo--typo-check.yml index 032c3b994..cd67647eb 100644 --- a/.github/workflows/repo--typo-check.yml +++ b/.github/workflows/repo--typo-check.yml @@ -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 diff --git a/.github/workflows/repo--validate-pr-title.yml b/.github/workflows/repo--validate-pr-title.yml index 686ee5a26..df7a996b0 100644 --- a/.github/workflows/repo--validate-pr-title.yml +++ b/.github/workflows/repo--validate-pr-title.yml @@ -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