Skip to content

Commit

Permalink
Merge pull request #155 from taoyong-ty/fix-setupSignalHandlers
Browse files Browse the repository at this point in the history
Update code-build.js to use SDK v3 syntax
  • Loading branch information
taoyong-ty authored Jan 31, 2024
2 parents 3a54508 + fd9f36c commit 84c911e
Show file tree
Hide file tree
Showing 3 changed files with 34,502 additions and 1,602 deletions.
2 changes: 1 addition & 1 deletion code-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function setupSignalHandlers(sdk, id, signals) {
process.on(s, async () => {
try {
core.info(`Caught ${s}, attempting to stop build...`);
await sdk.codeBuild.stopBuild({ id }).promise();
await sdk.codeBuild.stopBuild({ id });
} catch (ex) {
core.error(`Error stopping build: ${ex}`);
}
Expand Down
Loading

0 comments on commit 84c911e

Please sign in to comment.