Skip to content

Commit

Permalink
feat: Always add default stage (#81)
Browse files Browse the repository at this point in the history
Instead of ommiting the default stage if we have any stages, always add
the default stage.
  • Loading branch information
lunks authored Sep 5, 2024
1 parent ecac98b commit f2f393c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export async function run() {
const context = github.context;
try {
const assembly = AssemblyManifestReader.fromPath(inputs.cdkOutDir);
let stages = assembly.stages;
if (!stages.length) {
stages = [{
const stages = assembly.stages;
if (assembly.stacks.length) {
stages.push({
name: 'DefaultStage',
stacks: assembly.stacks,
}];
});
}
const comments = new Comments(octokit, context);
const processor = new StageProcessor(stages, inputs.allowedDestroyTypes);
Expand Down

0 comments on commit f2f393c

Please sign in to comment.