This is an automated email from the ASF dual-hosted git repository.
wgtmac pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new a8578e1b chore(ci): skip actions for draft PRs (#680)
a8578e1b is described below
commit a8578e1bddb55f7efbd3a9319f96ed8d03f53c2a
Author: Junwang Zhao <[email protected]>
AuthorDate: Mon May 25 13:34:02 2026 +0800
chore(ci): skip actions for draft PRs (#680)
---
.github/workflows/asf-allowlist-check.yml | 2 ++
.github/workflows/codeql.yml | 2 ++
.github/workflows/cpp-linter.yml | 2 ++
.github/workflows/license_check.yml | 5 ++++-
.github/workflows/pre-commit.yml | 2 ++
.github/workflows/s3_test.yml | 2 ++
.github/workflows/sanitizer_test.yml | 2 ++
.github/workflows/test.yml | 5 +++++
.github/workflows/zizmor.yml | 2 ++
9 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/asf-allowlist-check.yml
b/.github/workflows/asf-allowlist-check.yml
index 8d7952a9..5c91ccf9 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 a811068b..1e98f27c 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 dd78a98f..aa5262a5 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 4bb28c0d..47f974e8 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 583f280b..4bbc2355 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 8e6fb1ec..415477b2 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 f33eda1b..efe9f49a 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 33368bb1..7d2e09fd 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
@@ -86,6 +89,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
@@ -121,6 +125,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 eb70d46b..904f4726 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: {}