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:
|
||||
github-token: ${{ steps.get-app-token.outputs.token }}
|
||||
script: |
|
||||
let result = new Map()
|
||||
|
||||
const wfJobs = await github.actions.listJobsForWorkflowRun({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
run_id: context.payload.workflow_run.id,
|
||||
})
|
||||
|
||||
function getJobStatus(arrJobs: any[], name: string) {
|
||||
for (const job of arrJobs) {
|
||||
if (job.name === name) {
|
||||
return job.conclusion
|
||||
}
|
||||
for (const job of wfJobs.data.jobs) {
|
||||
if (job.name === 'Lint charts') {
|
||||
result.set('lint', job.conclusion)
|
||||
} else if (job.name === 'Install successful') {
|
||||
result.set('install', job.conclusion)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
lint: getJobStatus(result, 'Lint charts'),
|
||||
install: getJobStatus(result, 'Install successful')
|
||||
lint: result.get('lint')
|
||||
install: result.get('install')
|
||||
}
|
||||
|
||||
- name: Get result
|
||||
|
Loading…
Reference in New Issue
Block a user