diff --git a/.github/workflows/asf-allowlist-check.yml b/.github/workflows/asf-allowlist-check.yml index 8d7952a9d..5c91ccf9d 100644 --- a/.github/workflows/asf-allowlist-check.yml +++ b/.github/workflows/asf-allowlist-check.yml @@ -25,6 +25,7 @@ name: "ASF Allowlist Check" on: pull_request: + types: [opened, synchronize, reopened, ready_for_review] paths: - ".github/**" push: @@ -38,6 +39,7 @@ permissions: jobs: asf-allowlist-check: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-24.04 steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6f25d0c9b..576e74dfe 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -23,6 +23,7 @@ on: push: branches: [ "main" ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ "main" ] schedule: - cron: '16 4 * * 1' @@ -32,6 +33,7 @@ permissions: jobs: analyze: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} name: Analyze Actions runs-on: ubuntu-slim permissions: diff --git a/.github/workflows/cpp-linter.yml b/.github/workflows/cpp-linter.yml index dd78a98f9..aa5262a52 100644 --- a/.github/workflows/cpp-linter.yml +++ b/.github/workflows/cpp-linter.yml @@ -19,6 +19,7 @@ name: C++ Linter on: pull_request: + types: [opened, synchronize, reopened, ready_for_review] paths-ignore: - '.github/**' - 'ci/**' @@ -28,6 +29,7 @@ on: jobs: cpp-linter: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-24.04 permissions: contents: read diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 4bb28c0d5..47f974e82 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -17,13 +17,16 @@ name: "Run License Check" -on: pull_request +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] permissions: contents: read jobs: license-check: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} name: "License Check" runs-on: ubuntu-slim steps: diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 583f280bd..4bbc2355f 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -19,6 +19,7 @@ name: pre-commit on: pull_request: + types: [opened, synchronize, reopened, ready_for_review] push: branches: - '**' @@ -29,6 +30,7 @@ permissions: jobs: pre-commit: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-slim steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/s3_test.yml b/.github/workflows/s3_test.yml index d9675a4d8..0cf8e8b1e 100644 --- a/.github/workflows/s3_test.yml +++ b/.github/workflows/s3_test.yml @@ -26,6 +26,7 @@ on: tags: - '**' pull_request: + types: [opened, synchronize, reopened, ready_for_review] concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} @@ -39,6 +40,7 @@ env: jobs: s3-minio: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} name: S3 (${{ matrix.title }}) runs-on: ${{ matrix.runs-on }} timeout-minutes: 35 diff --git a/.github/workflows/sanitizer_test.yml b/.github/workflows/sanitizer_test.yml index f33eda1be..efe9f49ac 100644 --- a/.github/workflows/sanitizer_test.yml +++ b/.github/workflows/sanitizer_test.yml @@ -25,6 +25,7 @@ on: tags: - '**' pull_request: + types: [opened, synchronize, reopened, ready_for_review] concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} @@ -35,6 +36,7 @@ permissions: jobs: sanitizer-test: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} name: "ASAN and UBSAN Tests" runs-on: ubuntu-24.04 steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 973d2f437..9c061db75 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,7 @@ on: tags: - '**' pull_request: + types: [opened, synchronize, reopened, ready_for_review] concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} @@ -38,6 +39,7 @@ env: jobs: ubuntu: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} name: AMD64 Ubuntu 24.04 runs-on: ubuntu-24.04 timeout-minutes: 30 @@ -64,6 +66,7 @@ jobs: CXX: g++-14 run: ci/scripts/build_example.sh $(pwd)/example macos: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} name: AArch64 macOS 26 runs-on: macos-26 timeout-minutes: 30 @@ -81,6 +84,7 @@ jobs: shell: bash run: ci/scripts/build_example.sh $(pwd)/example windows: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} name: AMD64 Windows 2025 runs-on: windows-2025 timeout-minutes: 60 @@ -116,6 +120,7 @@ jobs: $ErrorActionPreference = "Stop" bash -lc 'ci/scripts/build_example.sh $(pwd)/example' meson: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} name: Meson - ${{ matrix.title }} runs-on: ${{ matrix.runs-on }} timeout-minutes: 30 diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index a265483fa..7df1149ff 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -23,12 +23,14 @@ on: push: branches: ["main"] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: ["**"] permissions: {} jobs: zizmor: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} name: Run zizmor 🌈 runs-on: ubuntu-24.04 permissions: {}