Skip to content

Commit df15fc8

Browse files
committed
ci: twister: convert to pull_request
Convert twister workflow to use pull_request. Signed-off-by: Anas Nashif <[email protected]>
1 parent 5777eed commit df15fc8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/twister-prep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
prep_pr:
18-
if: github.repository_owner == 'zephyrproject-rtos' && github.event_name == 'pull_request_target'
18+
if: github.repository_owner == 'zephyrproject-rtos' && github.event_name == 'pull_request'
1919
runs-on:
2020
group: test-runner-v2-linux-x64-4xlarge
2121
container:

.github/workflows/twister-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
upload-to-elasticsearch:
1313
if: |
1414
github.repository == 'zephyrproject-rtos/zephyr' &&
15-
github.event.workflow_run.event != 'pull_request_target'
15+
github.event.workflow_run.event != 'pull_request'
1616
env:
1717
ELASTICSEARCH_KEY: ${{ secrets.ELASTICSEARCH_KEY }}
1818
ELASTICSEARCH_SERVER: "https://elasticsearch.zephyrproject.io:443"

.github/workflows/twister.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77
- v*-branch
88
- collab-*
9-
pull_request_target:
9+
pull_request:
1010
branches:
1111
- main
1212
- v*-branch
@@ -81,7 +81,7 @@ jobs:
8181

8282
- name: Environment Setup
8383
run: |
84-
if [ "${{github.event_name}}" = "pull_request_target" ]; then
84+
if [ "${{github.event_name}}" = "pull_request" ]; then
8585
git config --global user.email "[email protected]"
8686
git config --global user.name "Zephyr Builder"
8787
rm -fr ".git/rebase-apply"
@@ -143,7 +143,7 @@ jobs:
143143
fi
144144
fi
145145
146-
- if: github.event_name == 'pull_request_target'
146+
- if: github.event_name == 'pull_request'
147147
name: Run Tests with Twister (Pull Request)
148148
id: run_twister_pr
149149
run: |

0 commit comments

Comments
 (0)