forked from Mirror/attic-action
index: add nix profile to path
Some checks failed
Test / test-cache (ubuntu-latest) (push) Failing after 5m15s
Some checks failed
Test / test-cache (ubuntu-latest) (push) Failing after 5m15s
This commit is contained in:
parent
5e27ad92fd
commit
79856ad24e
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue