Skip to content

Commit d346a12

Browse files
committed
fix
1 parent 1233ef9 commit d346a12

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/bin/modified-workspaces/log-modified-workspaces.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if (modifiedWorkspaces.all) {
4040
process.exit(0);
4141
}
4242

43-
if (modifiedWorkspaces.nothing || (modifiedWorkspaces.modified && modifiedWorkspaces.modified.length === 0)) {
43+
if (modifiedWorkspaces.nothing) {
4444
// in the current form we always need to do something.
4545
// building/testing any package prevents error states if nothing actually changed.
4646
process.stdout.write('--workspace=@csstools/postcss-tape');

.github/bin/modified-workspaces/modified-workspaces.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ export async function listModifiedWorkspaces() {
9494
}
9595
}
9696

97+
if (modifiedWorkspaces.size === 0) {
98+
return {
99+
nothing: true,
100+
all: false,
101+
modified: [],
102+
};
103+
}
104+
97105
return {
98106
nothing: false,
99107
all: false,

0 commit comments

Comments
 (0)