diff --git a/dist/index.js b/dist/index.js index 3694f05e..8ceb62b0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -55109,6 +55109,7 @@ async function startEc2Instance(label, githubRegistrationToken) { SubnetId: config.input.subnetId, SecurityGroupIds: [config.input.securityGroupId], IamInstanceProfile: { Name: config.input.iamRoleName }, + TagSpecifications: config.tagSpecifications, }; try { @@ -55185,6 +55186,12 @@ class Config { iamRoleName: core.getInput('iam-role-name'), }; + const tags = JSON.parse(core.getInput('aws-resource-tags')); + this.tagSpecifications = null; + if (tags.length > 0) { + this.tagSpecifications = [{ResourceType: 'instance', Tags: tags}, {ResourceType: 'volume', Tags: tags}]; + } + // the values of github.context.repo.owner and github.context.repo.repo are taken from // the environment variable GITHUB_REPOSITORY specified in "owner/repo" format and // provided by the GitHub Action on the runtime