diff --git a/actions-toolkit b/actions-toolkit index 712c2e0b..6a19ca16 160000 --- a/actions-toolkit +++ b/actions-toolkit @@ -1 +1 @@ -Subproject commit 712c2e0bb57398c3a750a3325a2e1abbf4002961 +Subproject commit 6a19ca16f7cd95203752dc13bd4708836a79d3b9 diff --git a/dist/merge/index.js b/dist/merge/index.js index 62c7b462..e924e7e0 100644 --- a/dist/merge/index.js +++ b/dist/merge/index.js @@ -917,11 +917,12 @@ class CreateArtifactResponse$Type extends runtime_5.MessageType { constructor() { super("github.actions.results.api.v1.CreateArtifactResponse", [ { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, - { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ } + { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "upload_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ } ]); } create(value) { - const message = { ok: false, signedUploadUrl: "" }; + const message = { ok: false, signedUploadUrl: "", uploadId: "" }; globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); if (value !== undefined) (0, runtime_3.reflectionMergePartial)(this, message, value); @@ -976,10 +977,11 @@ class FinalizeArtifactRequest$Type extends runtime_5.MessageType { { no: 4, name: "size", kind: "scalar", T: 3 /*ScalarType.INT64*/ }, { no: 5, name: "hash", kind: "message", T: () => wrappers_2.StringValue }, { no: 6, name: "etag", kind: "scalar", T: 9 }, + { no: 6, name: "upload_id", kind: "scalar", T: 9 }, ]); } create(value) { - const message = { workflowRunBackendId: "", workflowJobRunBackendId: "", name: "", size: "0", etag: "" }; + const message = { workflowRunBackendId: "", workflowJobRunBackendId: "", name: "", size: "0", etag: "", uploadId: "" }; globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); if (value !== undefined) (0, runtime_3.reflectionMergePartial)(this, message, value); @@ -3704,6 +3706,7 @@ function uploadArtifact(name, files, rootDirectory, options) { name, size: uploadResult.uploadSize ? uploadResult.uploadSize.toString() : '0', etag: (_a = uploadResult.uploadEtag) !== null && _a !== void 0 ? _a : '', + uploadId: createArtifactResp.uploadId, }; if (uploadResult.sha256Hash) { finalizeArtifactReq.hash = generated_1.StringValue.create({ diff --git a/dist/upload/index.js b/dist/upload/index.js index 2f325d2c..2df6cccf 100644 --- a/dist/upload/index.js +++ b/dist/upload/index.js @@ -917,11 +917,12 @@ class CreateArtifactResponse$Type extends runtime_5.MessageType { constructor() { super("github.actions.results.api.v1.CreateArtifactResponse", [ { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, - { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ } + { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "upload_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ } ]); } create(value) { - const message = { ok: false, signedUploadUrl: "" }; + const message = { ok: false, signedUploadUrl: "", uploadId: "" }; globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); if (value !== undefined) (0, runtime_3.reflectionMergePartial)(this, message, value); @@ -976,10 +977,11 @@ class FinalizeArtifactRequest$Type extends runtime_5.MessageType { { no: 4, name: "size", kind: "scalar", T: 3 /*ScalarType.INT64*/ }, { no: 5, name: "hash", kind: "message", T: () => wrappers_2.StringValue }, { no: 6, name: "etag", kind: "scalar", T: 9 }, + { no: 6, name: "upload_id", kind: "scalar", T: 9 }, ]); } create(value) { - const message = { workflowRunBackendId: "", workflowJobRunBackendId: "", name: "", size: "0", etag: "" }; + const message = { workflowRunBackendId: "", workflowJobRunBackendId: "", name: "", size: "0", etag: "", uploadId: "" }; globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); if (value !== undefined) (0, runtime_3.reflectionMergePartial)(this, message, value); @@ -3704,6 +3706,7 @@ function uploadArtifact(name, files, rootDirectory, options) { name, size: uploadResult.uploadSize ? uploadResult.uploadSize.toString() : '0', etag: (_a = uploadResult.uploadEtag) !== null && _a !== void 0 ? _a : '', + uploadId: createArtifactResp.uploadId, }; if (uploadResult.sha256Hash) { finalizeArtifactReq.hash = generated_1.StringValue.create({