File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,23 @@ jobs:
98
98
enable-warnings-report : ' true'
99
99
enable-warnings-log : ' true'
100
100
101
+ - name : Get job ID
102
+ id : job_id
103
+ uses : actions/github-script@main
104
+ with :
105
+ script : |
106
+ const { data: workflow_run } = await github.rest.actions.listJobsForWorkflowRun({
107
+ owner: context.repo.owner,
108
+ repo: context.repo.repo,
109
+ run_id: context.runId
110
+ });
111
+ const job_name = `Test ${{ matrix.board }} board`
112
+ return workflow_run.jobs.find((job) => job.name === job_name).id;
113
+
101
114
- name : Clean up log
102
115
run : |
103
116
sed -i -e 's!/home/runner/.arduino15/packages/arduino/hardware/zephyr/[^/]*/!!g' sketches-reports/${REPORT_FILE}
104
- cat sketches-reports/${REPORT_FILE} | jq -cr ". += { job_id: ${{ github.job }} }" > ${REPORT_FILE} && mv ${REPORT_FILE} sketches-reports/
117
+ cat sketches-reports/${REPORT_FILE} | jq -cr ". += { job_id: ${{ steps.job_id.outputs.result }} }" > ${REPORT_FILE} && mv ${REPORT_FILE} sketches-reports/
105
118
106
119
- uses : actions/upload-artifact@v4
107
120
with :
You can’t perform that action at this time.
0 commit comments