Skip to content

Commit b8e9f11

Browse files
authored
Merge pull request #23 from graybrandonpfg/fix-args
Added/fixed support for CDK subcommand args
2 parents 239b705 + e114733 commit b8e9f11

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
with:
3434
cdk_subcommand: 'deploy'
3535
cdk_stack: 'stack1'
36+
cdk_args: '--require-approval never'
3637
actions_comment: false
37-
args: '--require-approval never'
3838
env:
3939
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
4040
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ inputs:
1414
cdk_subcommand:
1515
description: 'AWS CDK subcommand to execute.'
1616
required: true
17+
cdk_args:
18+
description: 'AWS CDK subcommand arguments.'
19+
required: false
1720
working_dir:
1821
description: 'AWS CDK working directory.'
1922
default: '.'

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function main(){
9797
installTypescript
9898
installAwsCdk
9999
installPipRequirements
100-
runCdk
100+
runCdk ${INPUT_CDK_ARGS}
101101
}
102102

103103
main

0 commit comments

Comments
 (0)