Skip to content

Commit 63f9121

Browse files
author
GitHub Actions
committed
Update dist
1 parent fc89387 commit 63f9121

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

dist/index.js

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -160391,17 +160391,21 @@ async function getImageId(imageNameMatch) {
160391160391
async function sendstart(command) {
160392160392
const ec2 = new EC2Client({region: process.env.AWS_REGION});
160393160393

160394-
ec2.send(command, (err, data) => {
160395-
if (err) {
160396-
console.log(err, err.stack);
160397-
core.error(`Error: ${err}`)
160398-
throw err;
160399-
} else {
160400-
const ec2InstanceIds = data.Instances.map(x => x.InstanceId); //[0].InstanceId; pass all instances instead of just first id
160401-
core.info(`AWS EC2 instance(s) ${ec2InstanceIds} is started`);
160402-
return ec2InstanceIds;
160403-
}
160404-
});
160394+
console.log("sendstart")
160395+
const response = await ec2.send(command); //, (err, data) => {
160396+
console.log("response")
160397+
console.log(response)
160398+
console.log("endresponse")
160399+
// if (err) {
160400+
// console.log(err, err.stack);
160401+
// core.error(`Error: ${err}`)
160402+
// throw err;
160403+
// } else {
160404+
// const ec2InstanceIds = data.Instances.map(x => x.InstanceId); //[0].InstanceId; pass all instances instead of just first id
160405+
// core.info(`AWS EC2 instance(s) ${ec2InstanceIds} is started`);
160406+
// return ec2InstanceIds;
160407+
// }
160408+
// });
160405160409
}
160406160410

160407160411
async function startEc2Instance(label, githubRegistrationToken) {

0 commit comments

Comments
 (0)