Skip to content

Commit b5c9bcb

Browse files
committed
updates
1 parent 0b372f8 commit b5c9bcb

File tree

6 files changed

+20
-21
lines changed

6 files changed

+20
-21
lines changed

.projen/tasks.json

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

.projenrc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ const project = new GitHubActionTypeScriptProject({
6767
required: false,
6868
},
6969
noFailOnDestructiveChanges: {
70-
description: '',
70+
description: 'List of stages where breaking changes will not fail the build',
7171
required: false,
72-
default: 'List of stages where breaking changes will not fail the build',
72+
default: '',
7373
},
7474
cdkOutDir: {
7575
description: 'The location of the CDK output directory',

action.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 7 additions & 8 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/action.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getInput, getBooleanInput } from '@actions/core';
1+
import { getInput, getBooleanInput, getMultilineInput } from '@actions/core';
22
import * as github from '@actions/github';
33
import { DiffMethod, NonInteractiveIoHost, Toolkit } from '@aws-cdk/toolkit-lib';
44
import { Comments } from './comment';
@@ -7,14 +7,14 @@ import { AssemblyProcessor } from './stage-processor';
77

88
export async function run() {
99
const inputs: Inputs = {
10-
allowedDestroyTypes: getInput('allowedDestroyTypes').split(','),
10+
allowedDestroyTypes: getMultilineInput('allowedDestroyTypes'),
1111
failOnDestructiveChanges: getBooleanInput('failOnDestructiveChanges'),
1212
githubToken: getInput('githubToken'),
13-
stackSelectorPatterns: getInput('stackSelectorPatterns').split(','),
14-
stackSelectionStrategy: getInput('stackSelectionStrategy') ?? 'all-stacks',
15-
noFailOnDestructiveChanges: getInput('noFailOnDestructiveChanges').split(','),
16-
cdkOutDir: getInput('cdkOutDir') ?? 'cdk.out',
17-
diffMethod: getInput('diffMethod') ?? 'change-set',
13+
stackSelectorPatterns: getMultilineInput('stackSelectorPatterns'),
14+
stackSelectionStrategy: getInput('stackSelectionStrategy', { required: true }),
15+
noFailOnDestructiveChanges: getMultilineInput('noFailOnDestructiveChanges'),
16+
cdkOutDir: getInput('cdkOutDir', { required: true }),
17+
diffMethod: getInput('diffMethod', { required: true }),
1818
};
1919

2020
if (inputs.stackSelectorPatterns.length > 0 && inputs.stackSelectionStrategy === 'all-stacks') {

0 commit comments

Comments
 (0)