Skip to content

Commit f329103

Browse files
Don't run the build unless ran from nodejs
1 parent 9b31f04 commit f329103

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

dist/index.js

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,13 @@ module.exports = {
182182
run,
183183
}
184184

185-
run(
186-
core.getInput("manifest-path"),
187-
["y", "yes", "true", "enabled"].includes(core.getInput("run-tests")),
188-
core.getInput("bundle") || "app.flatpak",
189-
core.getInput("runtime-repo"),
190-
"flatpak_app",
191-
"repo"
192-
)
185+
if (require.main === module) {
186+
run(
187+
core.getInput("manifest-path"),
188+
["y", "yes", "true", "enabled"].includes(core.getInput("run-tests")),
189+
core.getInput("bundle") || "app.flatpak",
190+
core.getInput("runtime-repo"),
191+
"flatpak_app",
192+
"repo"
193+
)
194+
}

0 commit comments

Comments
 (0)