mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
ci: Debug
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
parent
5e85a73e42
commit
60f4945c27
@ -86,23 +86,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{ steps.get-app-token.outputs.token }}
|
github-token: ${{ steps.get-app-token.outputs.token }}
|
||||||
script: |
|
script: |
|
||||||
|
let result = new Map()
|
||||||
|
|
||||||
const wfJobs = await github.actions.listJobsForWorkflowRun({
|
const wfJobs = await github.actions.listJobsForWorkflowRun({
|
||||||
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,
|
||||||
})
|
})
|
||||||
|
|
||||||
function getJobStatus(arrJobs: any[], name: string) {
|
for (const job of wfJobs.data.jobs) {
|
||||||
for (const job of arrJobs) {
|
if (job.name === 'Lint charts') {
|
||||||
if (job.name === name) {
|
result.set('lint', job.conclusion)
|
||||||
return job.conclusion
|
} else if (job.name === 'Install successful') {
|
||||||
}
|
result.set('install', job.conclusion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
lint: getJobStatus(result, 'Lint charts'),
|
lint: result.get('lint')
|
||||||
install: getJobStatus(result, 'Install successful')
|
install: result.get('install')
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Get result
|
- name: Get result
|
||||||
|
Loading…
Reference in New Issue
Block a user