Skip to content

Commit bdeb001

Browse files
Use run ID instead of job ID as artifact key.
1 parent 03eed12 commit bdeb001

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

dist/merge/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -3357,9 +3357,9 @@ function getBackendIdsFromToken() {
33573357
// missing expected number of claims
33583358
throw InvalidJwtError;
33593359
}
3360-
const publicRunId = process.env["GITHUB_JOB"];
3360+
const publicRunId = process.env["GITHUB_RUN_ID"];
33613361
if (publicRunId == null) {
3362-
throw new Error("failed to get GITHUB_JOB environment variable");
3362+
throw new Error("failed to get GITHUB_RUN_ID environment variable");
33633363
}
33643364
const ids = {
33653365
workflowRunBackendId: scopeParts[1],
@@ -3368,6 +3368,7 @@ function getBackendIdsFromToken() {
33683368
};
33693369
core.debug(`Workflow Run Backend ID: ${ids.workflowRunBackendId}`);
33703370
core.debug(`Workflow Job Run Backend ID: ${ids.workflowJobRunBackendId}`);
3371+
core.debug(`Public Run ID: ${ids.publicRunId}`);
33713372
return ids;
33723373
}
33733374
throw InvalidJwtError;

dist/upload/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -3357,9 +3357,9 @@ function getBackendIdsFromToken() {
33573357
// missing expected number of claims
33583358
throw InvalidJwtError;
33593359
}
3360-
const publicRunId = process.env["GITHUB_JOB"];
3360+
const publicRunId = process.env["GITHUB_RUN_ID"];
33613361
if (publicRunId == null) {
3362-
throw new Error("failed to get GITHUB_JOB environment variable");
3362+
throw new Error("failed to get GITHUB_RUN_ID environment variable");
33633363
}
33643364
const ids = {
33653365
workflowRunBackendId: scopeParts[1],
@@ -3368,6 +3368,7 @@ function getBackendIdsFromToken() {
33683368
};
33693369
core.debug(`Workflow Run Backend ID: ${ids.workflowRunBackendId}`);
33703370
core.debug(`Workflow Job Run Backend ID: ${ids.workflowJobRunBackendId}`);
3371+
core.debug(`Public Run ID: ${ids.publicRunId}`);
33713372
return ids;
33723373
}
33733374
throw InvalidJwtError;

0 commit comments

Comments
 (0)