Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/stages/configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const configure = async () => {
const cache = core.getInput("cache");
const token = core.getInput("token");
const skipUse = core.getInput("skip-use");
const skipPush = core.getInput("skip-push");

core.info("Logging in to Attic cache");
if (!INTERNAL_DRY_RUN) await exec("attic", ["login", "--set-default", cache, endpoint, token]);
Expand All @@ -21,8 +22,12 @@ export const configure = async () => {
if (!INTERNAL_DRY_RUN) await exec("attic", ["use", cache]);
}

core.info("Collecting store paths before build");
await saveStorePaths();
if (skipPush === "true") {
core.info("Not collecting store paths before build as skip-push is set to true");
} else {
core.info("Collecting store paths before build");
await saveStorePaths();
}
} catch (e) {
core.setFailed(`Action failed with error: ${e}`);
}
Expand Down
Loading