File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,23 @@ jobs:
9898 enable-warnings-report : ' true'
9999 enable-warnings-log : ' true'
100100
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+
101114 - name : Clean up log
102115 run : |
103116 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/
105118
106119 - uses : actions/upload-artifact@v4
107120 with :
You can’t perform that action at this time.
0 commit comments