Skip to content

Commit c4208c5

Browse files
Update cdk-deploy.yml
1 parent a623e42 commit c4208c5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/cdk-deploy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Deploy infrastructure
22
on:
33
workflow_dispatch:
4+
inputs:
5+
ref:
6+
description: 'Branch, tag or commit SHA to deploy'
7+
required: false
8+
default: 'master'
9+
type: string
410

511
permissions:
612
id-token: write
@@ -12,6 +18,8 @@ jobs:
1218
steps:
1319
- name: Checkout repository
1420
uses: actions/checkout@v4
21+
with:
22+
ref: ${{ github.event.inputs.ref }}
1523

1624
- name: Configure AWS Credentials
1725
uses: aws-actions/configure-aws-credentials@v4
@@ -36,4 +44,3 @@ jobs:
3644
- name: CDK Deploy
3745
working-directory: ./cdk
3846
run: cdk deploy --require-approval never
39-

0 commit comments

Comments
 (0)