Skip to content

Commit e57e565

Browse files
committed
removing duplicate runs (google-gemini#8838)
1 parent bb1c481 commit e57e565

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/e2e.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ jobs:
5555
if: |
5656
github.event_name == 'push' ||
5757
github.event_name == 'merge_group' ||
58-
(github.event.pull_request.head.repo.full_name == github.repository) ||
59-
(github.event.label.name == 'maintainer:e2e:ok') ||
60-
(contains(github.event.pull_request.labels.*.name, 'maintainer:e2e:ok'))
58+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
59+
(github.event_name == 'pull_request_target' && github.event.label.name == 'maintainer:e2e:ok')
6160
runs-on: 'gemini-cli-ubuntu-16-core'
6261
strategy:
6362
fail-fast: false
@@ -119,9 +118,8 @@ jobs:
119118
if: |
120119
github.event_name == 'push' ||
121120
github.event_name == 'merge_group' ||
122-
(github.event.pull_request.head.repo.full_name == github.repository) ||
123-
(github.event.label.name == 'maintainer:e2e:ok') ||
124-
(contains(github.event.pull_request.labels.*.name, 'maintainer:e2e:ok'))
121+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
122+
(github.event_name == 'pull_request_target' && github.event.label.name == 'maintainer:e2e:ok')
125123
runs-on: '${{ matrix.os }}'
126124
continue-on-error: true
127125
strategy:
@@ -178,9 +176,8 @@ jobs:
178176
if: |
179177
github.event_name == 'push' ||
180178
github.event_name == 'merge_group' ||
181-
(github.event.pull_request.head.repo.full_name == github.repository) ||
182-
(github.event.label.name == 'maintainer:e2e:ok') ||
183-
(contains(github.event.pull_request.labels.*.name, 'maintainer:e2e:ok'))
179+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
180+
(github.event_name == 'pull_request_target' && github.event.label.name == 'maintainer:e2e:ok')
184181
runs-on: 'gemini-cli-windows-16-core'
185182
continue-on-error: true
186183

0 commit comments

Comments
 (0)