Skip to content

Commit db0dbcf

Browse files
authored
ci: skip workflows for PRs tagged [skip ci] or labeled skip-ci (#4291)
1 parent f65226a commit db0dbcf

12 files changed

Lines changed: 12 additions & 0 deletions

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ permissions:
3636
jobs:
3737
analyze:
3838
name: Analyze Actions
39+
if: ${{ github.event_name != 'pull_request' || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.title, '[skip ci]')) }}
3940
runs-on: ubuntu-24.04
4041
permissions:
4142
contents: read

.github/workflows/iceberg_spark_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
# Build native library once and share with all test jobs
6767
build-native:
6868
name: Build Native Library
69+
if: ${{ github.event_name != 'pull_request' || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.title, '[skip ci]')) }}
6970
runs-on: ubuntu-24.04
7071
container:
7172
image: amd64/rust

.github/workflows/miri.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ on:
5151
jobs:
5252
miri:
5353
name: "Miri"
54+
if: ${{ github.event_name != 'pull_request' || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.title, '[skip ci]')) }}
5455
runs-on: ubuntu-24.04
5556
steps:
5657
- uses: actions/checkout@v6

.github/workflows/pr_benchmark_check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ env:
4646
jobs:
4747
benchmark-check:
4848
name: Benchmark Compile & Lint Check
49+
if: ${{ github.event_name != 'pull_request' || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.title, '[skip ci]')) }}
4950
runs-on: ubuntu-24.04
5051
container:
5152
image: amd64/rust

.github/workflows/pr_build_linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
# Fast lint check - gates all other jobs
6464
lint:
6565
name: Lint
66+
if: ${{ github.event_name != 'pull_request' || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.title, '[skip ci]')) }}
6667
runs-on: ubuntu-24.04
6768
container:
6869
image: amd64/rust

.github/workflows/pr_build_macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
# Fast lint check - gates all other jobs (runs on Linux for cost efficiency)
6060
lint:
6161
name: Lint
62+
if: ${{ github.event_name != 'pull_request' || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.title, '[skip ci]')) }}
6263
runs-on: ubuntu-latest
6364
container:
6465
image: amd64/rust

.github/workflows/pr_markdown_format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ on:
2828

2929
jobs:
3030
prettier-check:
31+
if: ${{ github.event_name != 'pull_request' || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.title, '[skip ci]')) }}
3132
runs-on: ubuntu-24.04
3233
steps:
3334
- uses: actions/checkout@v6

.github/workflows/pr_missing_suites.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ on:
3030

3131
jobs:
3232
check-missing-suites:
33+
if: ${{ github.event_name != 'pull_request' || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.title, '[skip ci]')) }}
3334
runs-on: ubuntu-24.04
3435
steps:
3536
- uses: actions/checkout@v6

.github/workflows/pr_rat_check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ on:
3535
jobs:
3636
rat-check:
3737
name: RAT License Check
38+
if: ${{ github.event_name != 'pull_request' || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.title, '[skip ci]')) }}
3839
runs-on: ubuntu-slim
3940
steps:
4041
- uses: actions/checkout@v6

.github/workflows/pr_title_check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ on:
2727

2828
jobs:
2929
check-pr-title:
30+
if: ${{ github.event_name != 'pull_request' || (!contains(github.event.pull_request.labels.*.name, 'skip-ci') && !contains(github.event.pull_request.title, '[skip ci]')) }}
3031
runs-on: ubuntu-24.04
3132
steps:
3233
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)