1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

chore: add log PR report

This commit is contained in:
Lucas Severo Alves 2021-11-15 16:47:09 +01:00 committed by GitHub
parent 104ca3fa51
commit 4a5504702e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,19 +165,19 @@ jobs:
pull_number: process.env.number
});
const ref = pull.head.sha;
console.log("\n\nPR sha: " + ref)
const { data: checks } = await github.checks.listForRef({
...context.repo,
ref
});
console.log("\n\nPR CHECKS: " + checks)
const check = checks.check_runs.filter(c => c.name === process.env.job);
console.log("\n\nPR Filtered CHECK: " + check)
console.log(check)
const { data: result } = await github.checks.update({
...context.repo,
check_run_id: check.id,
check_run_id: check[0].id,
status: 'completed',
conclusion: process.env.conclusion
});
return result;