Skip to content

Commit 1e7d5c3

Browse files
committed
Remove deploymentGroupName input from action.yml and main.ts
1 parent 5d5222b commit 1e7d5c3

File tree

5 files changed

+3
-15
lines changed

5 files changed

+3
-15
lines changed

action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ inputs:
1212
applicationName:
1313
description: 'The name of the CodeDeploy application'
1414
required: true
15-
deploymentGroupName:
16-
description: 'The name of the CodeDeploy deployment group'
17-
required: false
1815
deploymentConfigName:
1916
description: 'The name of the CodeDeploy deployment config'
2017
required: false

dist/index.js

Lines changed: 1 addition & 5 deletions
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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ const LAMBDA_ALIAS = 'live'
1212
export async function run(): Promise<void> {
1313
try {
1414
const applicationName: string = core.getInput('applicationName')
15-
const deploymentGroupName: string = core.getInput('deploymentGroupName', {
16-
required: false
17-
})
1815
const deploymentConfigName: string = core.getInput('deploymentConfigName')
1916
const description: string = core.getInput('description')
2017
const tagKey: string = core.getInput('tagKey')
@@ -25,7 +22,6 @@ export async function run(): Promise<void> {
2522

2623
await deployApplication({
2724
applicationName,
28-
deploymentGroupName,
2925
deploymentConfigName,
3026
description,
3127
tagKey,
@@ -64,7 +60,7 @@ const deployApplication = async (
6460
for (const resource of resources) {
6561
const input: DeployInput = {
6662
applicationName: data.applicationName,
67-
deploymentGroupName: data.deploymentGroupName ?? Object.keys(resource)[0],
63+
deploymentGroupName: Object.keys(resource)[0],
6864
deploymentConfigName: data.deploymentConfigName,
6965
description: data.description,
7066
revision: {

src/types.ts

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

33
export type DeployApplicationInput = {
44
applicationName: string
5-
deploymentGroupName?: string
65
deploymentConfigName?: string
76
autoRollbackConfiguration?: string
87
description?: string

0 commit comments

Comments
 (0)