From 79856ad24e97d6e5401199683274e9ec8fc0b843 Mon Sep 17 00:00:00 2001 From: Naxdy Date: Sun, 1 Sep 2024 11:01:28 +0200 Subject: [PATCH] index: add nix profile to path --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) 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 {