mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-02 23:39:03 +00:00
ci: Debug
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
parent
e80147c11f
commit
55a03e7897
@ -80,7 +80,7 @@ jobs:
|
|||||||
token: ${{ steps.get-app-token.outputs.token }}
|
token: ${{ steps.get-app-token.outputs.token }}
|
||||||
sourceRunId: ${{ github.event.workflow_run.id }}
|
sourceRunId: ${{ github.event.workflow_run.id }}
|
||||||
|
|
||||||
- name: "Get workflow jobs"
|
- name: "Get workflow job status"
|
||||||
uses: actions/github-script@v4
|
uses: actions/github-script@v4
|
||||||
id: get-workflow-jobs
|
id: get-workflow-jobs
|
||||||
with:
|
with:
|
||||||
@ -90,11 +90,23 @@ jobs:
|
|||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
run_id: context.payload.workflow_run.id,
|
run_id: context.payload.workflow_run.id,
|
||||||
});
|
})
|
||||||
return wfJobs.data.jobs
|
|
||||||
|
function getJobStatus(arrJobs: any[], name: string) {
|
||||||
|
for (const job of arrJobs) {
|
||||||
|
if (job.name === name) {
|
||||||
|
return job.conclusion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
'lint': getJobStatus(result, 'Lint charts'),
|
||||||
|
'install': getJobStatus(result, 'Install successful')
|
||||||
|
}
|
||||||
|
|
||||||
- name: Get result
|
- name: Get result
|
||||||
run: echo "${{steps.get-workflow-jobs.outputs.result}}"
|
run: echo "${{steps.get-workflow-jobs.outputs.result.lint}}"
|
||||||
|
|
||||||
# # CI Passed
|
# # CI Passed
|
||||||
# - name: "add label: ok"
|
# - name: "add label: ok"
|
||||||
|
Loading…
Reference in New Issue
Block a user