Skip to content

Commit

Permalink
Always add default stage
Browse files Browse the repository at this point in the history
  • Loading branch information
lunks committed Sep 3, 2024
1 parent ecac98b commit 2a7d87e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ export async function run() {
const context = github.context;
try {
const assembly = AssemblyManifestReader.fromPath(inputs.cdkOutDir);
let stages = assembly.stages;
if (!stages.length) {
stages = [{
name: 'DefaultStage',
stacks: assembly.stacks,
}];
}
const stages = assembly.stages;
stages.push({
name: 'DefaultStage',
stacks: assembly.stacks,
});
const comments = new Comments(octokit, context);
const processor = new StageProcessor(stages, inputs.allowedDestroyTypes);
try {
Expand Down

0 comments on commit 2a7d87e

Please sign in to comment.