Skip to content

Commit 40c11a6

Browse files
committed
wip
Signed-off-by: Anas Nashif <[email protected]>
1 parent 70a4975 commit 40c11a6

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.github/workflows/twister-publish.yaml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,20 @@ on:
44
workflow_run:
55
workflows: ["Run tests with twister"]
66
branches:
7-
- main
8-
- topic/ci/upload_results
9-
- v*
7+
- main
8+
- v*
109
types:
11-
- completed
10+
- completed
1211

1312
jobs:
14-
twister-upload-to-elasticsearch:
15-
name: "Publish Tests Results to Elasticsearch"
13+
upload-to-elasticsearch:
1614
env:
1715
ELASTICSEARCH_KEY: ${{ secrets.ELASTICSEARCH_KEY }}
1816
ELASTICSEARCH_SERVER: "https://elasticsearch.zephyrproject.io:443"
1917
runs-on: ubuntu-22.04
20-
# the build-and-test job might be skipped, we don't need to run this job then
21-
if: success() || failure()
22-
2318
steps:
2419
# Needed for elasticearch and upload script
25-
name: Checkout
20+
- name: Checkout
2621
uses: actions/checkout@v4
2722
with:
2823
fetch-depth: 0
@@ -41,11 +36,11 @@ jobs:
4136
# set run date on upload to get consistent and unified data across the matrix.
4237
run_date=`date --iso-8601=minutes`
4338
if [ "${{github.event_name}}" = "push" ]; then
44-
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
45-
--run-attempt ${{github.run_attempt}} \
46-
--index zephyr-main-ci-push-1 artifacts/*/*/twister.json
39+
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
40+
--run-attempt ${{github.run_attempt}} \
41+
--index zephyr-main-ci-push-1 artifacts/*/*/twister.json
4742
elif [ "${{github.event_name}}" = "schedule" ]; then
48-
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
49-
--run-attempt ${{github.run_attempt}} \
50-
--index zephyr-main-ci-weekly-1 artifacts/*/*/twister.json
43+
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
44+
--run-attempt ${{github.run_attempt}} \
45+
--index zephyr-main-ci-weekly-1 artifacts/*/*/twister.json
5146
fi

0 commit comments

Comments
 (0)