Skip to content

Commit 67ef946

Browse files
hsbtclaude
andcommitted
Skip YJIT/ZJIT/Rust workflows for dependabot PRs unless Cargo update
Dependabot Cargo updates directly affect YJIT/ZJIT builds, so these workflows should run for Cargo dependency PRs. Other dependabot PRs (GitHub Actions, Vcpkg) are skipped. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ef3662a commit 67ef946

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/rust-warnings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
|| contains(github.event.head_commit.message, '[DOC]')
3333
|| contains(github.event.pull_request.title, '[DOC]')
3434
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
35-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
35+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
3636
)}}
3737
3838
steps:

.github/workflows/yjit-macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
|| contains(github.event.head_commit.message, '[DOC]')
3838
|| contains(github.event.pull_request.title, '[DOC]')
3939
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
40-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
40+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
4141
)}}
4242
4343
steps:
@@ -81,7 +81,7 @@ jobs:
8181
|| contains(github.event.head_commit.message, '[DOC]')
8282
|| contains(github.event.pull_request.title, '[DOC]')
8383
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
84-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
84+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
8585
)}}
8686
8787
steps:

.github/workflows/yjit-ubuntu.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
|| contains(github.event.head_commit.message, '[DOC]')
3333
|| contains(github.event.pull_request.title, '[DOC]')
3434
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
35-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
35+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
3636
)}}
3737
3838
steps:
@@ -66,7 +66,7 @@ jobs:
6666
|| contains(github.event.head_commit.message, '[DOC]')
6767
|| contains(github.event.pull_request.title, '[DOC]')
6868
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
69-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
69+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
7070
)}}
7171
7272
steps:
@@ -121,7 +121,7 @@ jobs:
121121
|| contains(github.event.head_commit.message, '[DOC]')
122122
|| contains(github.event.pull_request.title, '[DOC]')
123123
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
124-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
124+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
125125
)}}
126126
127127
steps:

.github/workflows/zjit-macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
|| contains(github.event.head_commit.message, '[DOC]')
6666
|| contains(github.event.pull_request.title, '[DOC]')
6767
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
68-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
68+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
6969
)}}
7070
7171
steps:
@@ -188,7 +188,7 @@ jobs:
188188
|| contains(github.event.head_commit.message, '[DOC]')
189189
|| contains(github.event.pull_request.title, '[DOC]')
190190
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
191-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
191+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
192192
)}}
193193
194194
steps:

.github/workflows/zjit-ubuntu.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
|| contains(github.event.head_commit.message, '[DOC]')
3838
|| contains(github.event.pull_request.title, '[DOC]')
3939
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
40-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
40+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
4141
)}}
4242
4343
steps:
@@ -102,7 +102,7 @@ jobs:
102102
|| contains(github.event.head_commit.message, '[DOC]')
103103
|| contains(github.event.pull_request.title, '[DOC]')
104104
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
105-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
105+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
106106
)}}
107107
108108
steps:
@@ -246,7 +246,7 @@ jobs:
246246
|| contains(github.event.head_commit.message, '[DOC]')
247247
|| contains(github.event.pull_request.title, '[DOC]')
248248
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
249-
|| (github.event.pull_request.user.login == 'dependabot[bot]')
249+
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
250250
)}}
251251
252252
steps:

0 commit comments

Comments
 (0)