Skip to content

Commit 66fa049

Browse files
nashifkartben
authored andcommitted
ci: twister: convert to pull_request
Convert twister workflow to use pull_request. Signed-off-by: Anas Nashif <[email protected]>
1 parent 42d3686 commit 66fa049

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
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
prep_pr:
21-
if: github.repository_owner == 'zephyrproject-rtos' && github.event_name == 'pull_request_target'
21+
if: github.repository_owner == 'zephyrproject-rtos' && github.event_name == 'pull_request'
2222
runs-on:
2323
group: zephyr-runner-v2-linux-x64-4xlarge
2424
container:

.github/workflows/twister-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
upload-to-elasticsearch:
1616
if: |
1717
github.repository == 'zephyrproject-rtos/zephyr' &&
18-
github.event.workflow_run.event != 'pull_request_target'
18+
github.event.workflow_run.event != 'pull_request'
1919
env:
2020
ELASTICSEARCH_KEY: ${{ secrets.ELASTICSEARCH_KEY }}
2121
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
@@ -84,7 +84,7 @@ jobs:
8484

8585
- name: Environment Setup
8686
run: |
87-
if [ "${{github.event_name}}" = "pull_request_target" ]; then
87+
if [ "${{github.event_name}}" = "pull_request" ]; then
8888
git config --global user.email "[email protected]"
8989
git config --global user.name "Zephyr Builder"
9090
rm -fr ".git/rebase-apply"
@@ -146,7 +146,7 @@ jobs:
146146
fi
147147
fi
148148
149-
- if: github.event_name == 'pull_request_target'
149+
- if: github.event_name == 'pull_request'
150150
name: Run Tests with Twister (Pull Request)
151151
id: run_twister_pr
152152
run: |

0 commit comments

Comments
 (0)