Skip to content

Commit d4155d0

Browse files
committed
wip4
1 parent b593c87 commit d4155d0

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Diff for: .github/workflows/package_core.yml

+14-1
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)