index: add nix profile to path
Some checks failed
Test / test-cache (ubuntu-latest) (push) Failing after 5m15s

This commit is contained in:
Naxdy 2024-09-01 11:01:28 +02:00
parent 5e27ad92fd
commit 79856ad24e
Signed by: Naxdy
GPG key ID: CC15075846BCE91B

View file

@ -2,10 +2,13 @@ import { install, isInstalled } from "./stages/install";
import { configure } from "./stages/configure";
import { push } from "./stages/push";
import { getState, saveState, info } from "@actions/core";
import { exec } from "@actions/exec";
const isPost = !!getState("isPost");
const main = async () => {
await exec("echo", ['"PATH=/nix/var/nix/profiles/per-user/root/profile/bin:$PATH"', ">>", '"$GITHUB_ENV"']);
if (await isInstalled()) {
info("Skipping attic installation because it is already installed");
} else {