diff --git a/src/entrypoints/update-comment-link.ts b/src/entrypoints/update-comment-link.ts index 1121204..d8cebf5 100644 --- a/src/entrypoints/update-comment-link.ts +++ b/src/entrypoints/update-comment-link.ts @@ -32,7 +32,7 @@ async function run() { const client = createClient(githubToken); const serverUrl = GITEA_SERVER_URL; - const jobUrl = `${serverUrl}/${owner}/${repo}/actions/runs/${process.env.GITHUB_RUN_NUMBER}`; + const jobUrl = `${serverUrl}/${owner}/${repo}/actions/runs/${process.env.GITHUB_RUN_ID}`; let comment; let isPRReviewComment = false; diff --git a/src/github/context.ts b/src/github/context.ts index 6da74fc..4e0d866 100644 --- a/src/github/context.ts +++ b/src/github/context.ts @@ -55,7 +55,7 @@ export function parseGitHubContext(): ParsedGitHubContext { } const commonFields = { - runId: process.env.GITHUB_RUN_NUMBER!, + runId: process.env.GITHUB_RUN_ID!, eventName: context.eventName, eventAction: context.payload.action, repository: {