diff --git a/src/index.ts b/src/index.ts index c98c33e..3f5f3a0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 {