Skip to content

Commit baca6e0

Browse files
authored
Use the label input, if there is one. (#216)
1 parent 4d8d065 commit baca6e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function setOutput(label, ec2InstanceId) {
99
}
1010

1111
async function start() {
12-
const label = config.generateUniqueLabel();
12+
const label = config.input.label ? config.input.label : config.input.generateUniqueLabel();
1313
const githubRegistrationToken = await gh.getRegistrationToken();
1414
const ec2InstanceId = await aws.startEc2Instance(label, githubRegistrationToken);
1515
setOutput(label, ec2InstanceId);

0 commit comments

Comments
 (0)