Skip to content

Commit bd5a5fb

Browse files
committed
Update deploymentGroupName to be optional
1 parent ce47dd7 commit bd5a5fb

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ inputs:
1414
required: true
1515
deploymentGroupName:
1616
description: 'The name of the CodeDeploy deployment group'
17-
required: true
17+
required: false
1818
deploymentConfigName:
1919
description: 'The name of the CodeDeploy deployment config'
2020
required: false

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const deployApplication = async (
6262
for (const resource of resources) {
6363
const input: DeployInput = {
6464
applicationName: data.applicationName,
65-
deploymentGroupName: data.deploymentGroupName,
65+
deploymentGroupName: data.deploymentGroupName ?? Object.keys(resource)[0],
6666
deploymentConfigName: data.deploymentConfigName,
6767
description: data.description,
6868
revision: {

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { RevisionLocation } from '@aws-sdk/client-codedeploy'
22

33
export type DeployApplicationInput = {
44
applicationName: string
5-
deploymentGroupName: string
5+
deploymentGroupName?: string
66
deploymentConfigName?: string
77
autoRollbackConfiguration?: string
88
description?: string

0 commit comments

Comments
 (0)