@@ -58621,11 +58621,14 @@ function getInputs() {
5862158621 required: true,
5862258622 }),
5862358623 productionCNAME: core.getInput("production_cname", { required: true }),
58624- sourceBundlePath : core.getInput("source_bundle_path ", { required: false }) || undefined,
58624+ sourceBundle : core.getInput("source_bundle ", { required: false }) || undefined,
5862558625 stagingCNAME: core.getInput("staging_cname", { required: false }) || undefined,
5862658626 swapCNAMES: core.getBooleanInput("swap_cnames", { required: true }),
5862758627 templateName: core.getInput("template_name", { required: false }) || undefined,
5862858628 terminateUnhealthyEnvironment: core.getBooleanInput("terminate_unhealthy_environment", { required: true }),
58629+ versionDescription: core.getInput("version_description", {
58630+ required: false,
58631+ }) || undefined,
5862958632 versionLabel: core.getInput("version_label", { required: true }),
5863058633 };
5863158634}
@@ -58673,7 +58676,7 @@ function getApplicationVersion(client, inputs) {
5867358676function createApplicationVersion(client, inputs) {
5867458677 return __awaiter(this, void 0, void 0, function* () {
5867558678 let SourceBundle;
58676- if (inputs.sourceBundlePath ) {
58679+ if (inputs.sourceBundle ) {
5867758680 const { S3Bucket } = yield client.send(new dist_cjs.CreateStorageLocationCommand({}));
5867858681 const S3Key = `${inputs.appName}/${inputs.versionLabel.replace(/[^a-zA-Z0-9-_]/g, "-")}.zip`;
5867958682 SourceBundle = { S3Bucket, S3Key };
@@ -58698,15 +58701,16 @@ function createApplicationVersion(client, inputs) {
5869858701 yield s3.send(new client_s3_dist_cjs.PutObjectCommand({
5869958702 Bucket: S3Bucket,
5870058703 Key: S3Key,
58701- Body: fs.readFileSync(inputs.sourceBundlePath ),
58704+ Body: fs.readFileSync(inputs.sourceBundle ),
5870258705 }));
5870358706 }
5870458707 }
5870558708 const { ApplicationVersion } = yield client.send(new dist_cjs.CreateApplicationVersionCommand({
5870658709 ApplicationName: inputs.appName,
5870758710 AutoCreateApplication: true,
58708- VersionLabel : inputs.versionLabel ,
58711+ Description : inputs.versionDescription ,
5870958712 SourceBundle,
58713+ VersionLabel: inputs.versionLabel,
5871058714 }));
5871158715 return ApplicationVersion;
5871258716 });
0 commit comments