Skip to content

Commit f18fca8

Browse files
authored
Use pull_request_target event for GPU and TPU tests. (#22551)
This change #22504 causes the `kokoro:force-run` label to be removed automatically. However, unlike removing the label manually, it does not trigger the GPU / TPU tests.
1 parent f18e417 commit f18fca8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/gpu_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Keras GPU Tests
33
on:
44
push:
55
branches: [master]
6-
pull_request:
6+
pull_request_target:
77
types: [unlabeled]
88
release:
99
types: [created]
@@ -20,7 +20,7 @@ jobs:
2020
if: |
2121
github.event_name == 'push' ||
2222
github.event_name == 'release' ||
23-
(github.event_name == 'pull_request' && github.event.action == 'unlabeled' && github.event.label.name == 'kokoro:force-run')
23+
(github.event.action == 'unlabeled' && github.event.label.name == 'kokoro:force-run')
2424
2525
strategy:
2626
fail-fast: false
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: Checkout Repository
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v6.0.2
3737

3838
- name: Check CUDA Version
3939
run: nvidia-smi

.github/workflows/tpu_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Keras TPU Tests
33
on:
44
push:
55
branches: [master]
6-
pull_request:
6+
pull_request_target:
77
types: [unlabeled]
88
release:
99
types: [created]
@@ -26,7 +26,7 @@ jobs:
2626
if: |
2727
github.event_name == 'push' ||
2828
github.event_name == 'release' ||
29-
(github.event_name == 'pull_request' && github.event.action == 'unlabeled' && github.event.label.name == 'kokoro:force-run')
29+
(github.event.action == 'unlabeled' && github.event.label.name == 'kokoro:force-run')
3030
3131
container:
3232
image: python:3.11-slim

0 commit comments

Comments
 (0)