ci: twister: check event using correct context
Check for event using correct github context. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
6843240196
commit
dc14a212eb
1 changed files with 8 additions and 8 deletions
16
.github/workflows/twister-publish.yaml
vendored
16
.github/workflows/twister-publish.yaml
vendored
|
|
@ -41,12 +41,12 @@ jobs:
|
|||
pip3 install elasticsearch
|
||||
# set run date on upload to get consistent and unified data across the matrix.
|
||||
run_date=`date --iso-8601=minutes`
|
||||
if [ "${{github.event_name}}" = "push" ]; then
|
||||
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
|
||||
--run-attempt ${{github.run_attempt}} \
|
||||
--index zephyr-main-ci-push-1 artifacts/*/*/twister.json
|
||||
elif [ "${{github.event_name}}" = "schedule" ]; then
|
||||
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
|
||||
--run-attempt ${{github.run_attempt}} \
|
||||
--index zephyr-main-ci-weekly-1 artifacts/*/*/twister.json
|
||||
if [ "${{github.event.workflow_run.event}}" = "push" ]; then
|
||||
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
|
||||
--run-attempt ${{github.run_attempt}} \
|
||||
--index zephyr-main-ci-push-1 artifacts/*/*/twister.json
|
||||
elif [ "${{github.event.workflow_run.event}}" = "schedule" ]; then
|
||||
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
|
||||
--run-attempt ${{github.run_attempt}} \
|
||||
--index zephyr-main-ci-weekly-1 artifacts/*/*/twister.json
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue