Skip to content

Commit 691b31d

Browse files
committed
fix workflow name
1 parent b28e720 commit 691b31d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,10 @@ async function createComment(body: string, command: string, versionOutput: strin
258258

259259
const repository = process.env.GITHUB_REPOSITORY!;
260260
const runId = process.env.GITHUB_RUN_ID!;
261-
const workflowRef = process.env.GITHUB_WORKFLOW_REF!;
261+
const jobId = process.env.GITHUB_JOB!;
262+
const workflow = process.env.GITHUB_WORKFLOW!;
262263

263-
const runLink = `[${workflowRef}](https://github.com/${repository}/actions/runs/${runId})`;
264+
const runLink = `[${workflow}](https://github.com/${repository}/actions/runs/${runId}/jobs/${jobId})`;
264265

265266
const commentBody = `
266267
${htmlCommentId}

0 commit comments

Comments
 (0)