feat: add save-if option, closes #66 (#91)

This commit is contained in:
Lucas Fernandes Nogueira
2022-11-06 15:15:00 -03:00
committed by GitHub
parent b894d59a8d
commit ecee04e7b3
3 changed files with 13 additions and 1 deletions

View File

@@ -13,7 +13,9 @@ process.on("uncaughtException", (e) => {
});
async function run() {
if (!cache.isFeatureAvailable()) {
const save = core.getInput("save-if").toLowerCase() || "true";
if (!(cache.isFeatureAvailable() && save === "true")) {
return;
}