Skip to content

Commit dc14a21

Browse files
committed
ci: twister: check event using correct context
Check for event using correct github context. Signed-off-by: Anas Nashif <[email protected]>
1 parent 6843240 commit dc14a21

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/twister-publish.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
pip3 install elasticsearch
4242
# set run date on upload to get consistent and unified data across the matrix.
4343
run_date=`date --iso-8601=minutes`
44-
if [ "${{github.event_name}}" = "push" ]; then
45-
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
46-
--run-attempt ${{github.run_attempt}} \
47-
--index zephyr-main-ci-push-1 artifacts/*/*/twister.json
48-
elif [ "${{github.event_name}}" = "schedule" ]; then
49-
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
50-
--run-attempt ${{github.run_attempt}} \
51-
--index zephyr-main-ci-weekly-1 artifacts/*/*/twister.json
44+
if [ "${{github.event.workflow_run.event}}" = "push" ]; then
45+
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
46+
--run-attempt ${{github.run_attempt}} \
47+
--index zephyr-main-ci-push-1 artifacts/*/*/twister.json
48+
elif [ "${{github.event.workflow_run.event}}" = "schedule" ]; then
49+
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
50+
--run-attempt ${{github.run_attempt}} \
51+
--index zephyr-main-ci-weekly-1 artifacts/*/*/twister.json
5252
fi

0 commit comments

Comments
 (0)