Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
f01d2cd188
chore(deps): bump DeterminateSystems/nix-installer-action from 9 to 12
Bumps [DeterminateSystems/nix-installer-action](https://github.com/determinatesystems/nix-installer-action) from 9 to 12.
- [Release notes](https://github.com/determinatesystems/nix-installer-action/releases)
- [Commits](https://github.com/determinatesystems/nix-installer-action/compare/v9...v12)

---
updated-dependencies:
- dependency-name: DeterminateSystems/nix-installer-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 22:58:37 +00:00
5 changed files with 5 additions and 13 deletions

View File

@ -28,7 +28,7 @@ jobs:
run: pnpm install && pnpm build run: pnpm install && pnpm build
- name: Install Nix - name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9 uses: DeterminateSystems/nix-installer-action@v12
- name: Setup Attic Cache - name: Setup Attic Cache
uses: ./ uses: ./

8
dist/index.js vendored

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

View File

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

View File

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