fix check-job-skipped.ts (#3626)

This commit is contained in:
Bart Louwers
2025-07-17 11:55:55 +02:00
committed by GitHub
parent d98381f943
commit 58d028b643
2 changed files with 2 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ async function run() {
const jobName = process.env.JOB_NAME;
if (!jobName) throw new Error("JOB_NAME not set");
const job = data.jobs.find(({name}) => name === jobName);
const job = data.jobs.find(({name}) => name.startsWith(jobName));
if (!job) throw new Error(`job with name ${jobName} not found in workflow run with id ${run_id}`);
core.setOutput('was_skipped', job.conclusion === 'skipped');