Skip to content

Commit 84c911e

Browse files
authored
Merge pull request #155 from taoyong-ty/fix-setupSignalHandlers
Update code-build.js to use SDK v3 syntax
2 parents 3a54508 + fd9f36c commit 84c911e

File tree

3 files changed

+34502
-1602
lines changed

3 files changed

+34502
-1602
lines changed

code-build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function setupSignalHandlers(sdk, id, signals) {
5858
process.on(s, async () => {
5959
try {
6060
core.info(`Caught ${s}, attempting to stop build...`);
61-
await sdk.codeBuild.stopBuild({ id }).promise();
61+
await sdk.codeBuild.stopBuild({ id });
6262
} catch (ex) {
6363
core.error(`Error stopping build: ${ex}`);
6464
}

0 commit comments

Comments
 (0)