Skip to content

Commit 5f08241

Browse files
committed
patch: Always include stacks if config is updated
1 parent 42b06a4 commit 5f08241

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/flowzone.yml

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

flowzone.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2824,14 +2824,19 @@ jobs:
28242824
return diff.split('\n').filter(f => f != null && !!f.trim())
28252825
};
28262826
2827-
const modifiedFiles = getModifiedFiles();
2827+
let modifiedFiles = getModifiedFiles();
28282828
console.log(`modifiedFiles:\n${modifiedFiles}`)
28292829
28302830
// Filter out unmodified stacks
28312831
stackNames = stackNames.filter(stackName => {
28322832
const stack = stacks.stacks.find(s => s.name === stackName);
28332833
const template = stack.template;
28342834
2835+
// Keep stack if any config is modified
2836+
if (modifiedFiles.some(file => file.startsWith('.github/workflows/')) || modifiedFiles.includes('aws-cf-templates.yml') || modifiedFiles.includes('aws-cf-templates.yaml') || modifiedFiles.includes('aws-cf-templates.json')) {
2837+
modifiedFiles.push(template);
2838+
}
2839+
28352840
// Keep stack if template is modified or workflow is modified
28362841
return modifiedFiles.some(file =>
28372842
file === template || file.startsWith('.github/workflows/' || /^aws-cf-templates\.(y(a)?ml|json)$/.test(file))

0 commit comments

Comments
 (0)