Skip to content

Commit

Permalink
Merge pull request #132 from kddejong/fix/issue/130
Browse files Browse the repository at this point in the history
Trim spaces after doing comma splits
  • Loading branch information
kddejong committed Feb 5, 2024
2 parents 7175f1a + 48c7902 commit 6d59d0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ describe('Deploy CloudFormation Stack', () => {
const inputs: Inputs = {
name: 'MockStack',
template: 'template.yaml',
capabilities: 'CAPABILITY_IAM',
capabilities: 'CAPABILITY_IAM, CAPABILITY_AUTO_EXPAND',
'change-set-name': 'Build-213123123-CS',
'parameter-overrides': '[email protected]',
'no-fail-on-empty-changeset': '1'
Expand Down Expand Up @@ -1459,7 +1459,7 @@ describe('Deploy CloudFormation Stack', () => {
{
StackName: 'MockStack',
TemplateBody: mockTemplate,
Capabilities: ['CAPABILITY_IAM'],
Capabilities: ['CAPABILITY_IAM', 'CAPABILITY_AUTO_EXPAND'],
Parameters: [
{ ParameterKey: 'AdminEmail', ParameterValue: '[email protected]' }
],
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export async function run(): Promise<void> {
.getInput('capabilities', {
required: false
})
.split(',') as Capability[]
.split(',')
.map(capability => capability.trim()) as Capability[]

const parameterOverrides = core.getInput('parameter-overrides', {
required: false
Expand Down

0 comments on commit 6d59d0a

Please sign in to comment.