Skip to content

Commit 655e68e

Browse files
committed
Don't do the opposite of running only when needed
1 parent 445a3fe commit 655e68e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ async function run() {
2525
});
2626
}
2727

28-
// Do not run if this node module is required by another action such as
29-
// run-tests.
30-
if (!(require.main === module)) {
28+
// Only run this action if it is invoked directly. Do not run if this node
29+
// module is required by another action such as run-tests.
30+
if (require.main === module) {
3131
run().catch((e) => {
3232
core.setFailed(e);
3333
});

0 commit comments

Comments
 (0)