chore(ci): skip CI on draft pull requests (#58750)

This commit is contained in:
DS
2026-10-24 12:52:17 -04:00
committed by GitHub
Unverified
parent 5e4aa55cda
commit 7ba0e4b67b
4 changed files with 11 additions and 1 deletions
+2
View File
@@ -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
+2
View File
@@ -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:
+2
View File
@@ -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
+5 -1
View File
@@ -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: