Compare commits

...

2 Commits

Author SHA1 Message Date
22c2bb1406 Make build 2024-06-16 21:26:31 -06:00
8e8ff90bd6 Use full path when accessing attic 2024-06-16 20:52:16 -06:00
4 changed files with 12 additions and 4 deletions

8
dist/index.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -12,13 +12,13 @@ export const configure = async () => {
const skipUse = core.getInput("skip-use");
core.info("Logging in to attic cache");
await exec("attic", ["login", "--set-default", cache, endpoint, token]);
await exec("/run/current-system/sw/bin/attic", ["login", "--set-default", cache, endpoint, token]);
if (skipUse === "true") {
core.info("Not adding attic cache to substituters as skip-use is set to true");
} else {
core.info("Adding attic cache to substituters");
await exec("attic", ["use", cache]);
await exec("/run/current-system/sw/bin/attic", ["use", cache]);
}
core.info("Collecting store paths before build");

View File

@ -35,6 +35,6 @@ export const install = async () => {
};
export const isInstalled = async () => {
let return_code = await exec("attic", ["-V"]);
let return_code = await exec("/run/current-system/sw/bin/attic", ["-V"]);
return return_code === 0;
};

View File

@ -28,7 +28,7 @@ export const push = async () => {
const splitAddedPaths = splitArray(addedPaths, 25);
for (const addedPaths of splitAddedPaths) {
await exec("attic", ["push", cache, ...addedPaths]);
await exec("/run/current-system/sw/bin/attic", ["push", cache, ...addedPaths]);
}
}
} catch (e) {