Skip to content

Commit 71c71fd

Browse files
author
George Penkov
committed
fix: fix param not being relayed when image name is retried with suffix
1 parent 46c651c commit 71c71fd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/aws.mjs

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ async function createImage(retryWithSuffix = false) {
1919
return data.ImageId;
2020
} catch (error) {
2121
if (error.Code === 'InvalidAMIName.Duplicate' && !retryWithSuffix) {
22-
createImage(true);
23-
return;
22+
return await createImage(true);
2423
}
2524
core.error('AWS EC2 AMI creation error');
2625
throw error;

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {createImage, waitUntilImageIsReady} from './aws.mjs';
99
core.setOutput('ami-id', amiId);
1010
core.endGroup();
1111
if (wait) {
12-
core.startGroup("Waiting for image to be ready")
12+
core.startGroup("Waiting for image " + amiId + "to be ready")
1313
await waitUntilImageIsReady(amiId);
1414
core.endGroup();
1515
}

0 commit comments

Comments
 (0)