From 7ba0e4b67bf55cae53ab7a550bfff7105707d068 Mon Sep 17 00:00:00 2001 From: DS <78942835+Tarquinen@users.noreply.github.com> Date: Sat, 24 Oct 2026 12:52:17 -0400 Subject: [PATCH] chore(ci): skip CI on draft pull requests (#58750) --- .github/workflows/check.yml | 2 ++ .github/workflows/nix-eval.yml | 2 ++ .github/workflows/storybook.yml | 2 ++ .github/workflows/test.yml | 6 +++++- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 62b6a461497..7d6aaeca894 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -5,6 +5,7 @@ on: branches: [dev] pull_request: branches: [dev] + types: [opened, synchronize, reopened, ready_for_review] workflow_dispatch: concurrency: @@ -14,6 +15,7 @@ concurrency: jobs: check: name: typecheck + if: ${{ !github.event.pull_request.draft }} runs-on: blacksmith-4vcpu-ubuntu-2404 steps: - name: Checkout repository diff --git a/.github/workflows/nix-eval.yml b/.github/workflows/nix-eval.yml index b6cf006631b..a015cd15278 100644 --- a/.github/workflows/nix-eval.yml +++ b/.github/workflows/nix-eval.yml @@ -5,6 +5,7 @@ on: branches: [dev] pull_request: branches: [dev] + types: [opened, synchronize, reopened, ready_for_review] workflow_dispatch: concurrency: @@ -16,6 +17,7 @@ permissions: jobs: nix-eval: + if: ${{ !github.event.pull_request.draft }} runs-on: blacksmith-4vcpu-ubuntu-2404 timeout-minutes: 15 steps: diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index be2e099d0ed..9412291fc7a 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -12,6 +12,7 @@ on: - "packages/session-ui/**" pull_request: branches: [dev] + types: [opened, synchronize, reopened, ready_for_review] paths: - ".github/workflows/storybook.yml" - "package.json" @@ -28,6 +29,7 @@ concurrency: jobs: build: name: storybook build + if: ${{ !github.event.pull_request.draft }} runs-on: blacksmith-4vcpu-ubuntu-2404 steps: - name: Checkout repository diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a4adcf25e46..3af291eaecf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,7 @@ on: branches: - dev pull_request: + types: [opened, synchronize, reopened, ready_for_review] workflow_dispatch: concurrency: @@ -23,6 +24,7 @@ env: jobs: affected: name: affected packages + if: ${{ !github.event.pull_request.draft }} runs-on: blacksmith-4vcpu-ubuntu-2404 outputs: e2e: ${{ steps.packages.outputs.app }} @@ -55,6 +57,7 @@ jobs: unit: name: unit (${{ matrix.settings.name }}) + if: ${{ !github.event.pull_request.draft }} strategy: fail-fast: false matrix: @@ -140,6 +143,7 @@ jobs: build: name: build (${{ matrix.settings.name }}) + if: ${{ !github.event.pull_request.draft }} strategy: fail-fast: false matrix: @@ -318,7 +322,7 @@ jobs: e2e: name: e2e (${{ matrix.os }}) needs: [affected, e2e-suite] - if: ${{ !cancelled() }} + if: ${{ !cancelled() && !github.event.pull_request.draft }} strategy: fail-fast: false matrix: