diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index babd4ce..e7146af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,7 +140,12 @@ jobs: run: echo $PATH - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() - run: nix run nixpkgs#fortune + run: | + nix run nixpkgs#fortune + nix profile install nixpkgs#fortune + fortune + nix store gc + nix run nixpkgs#fortune - name: Test bash run: nix-instantiate -E 'builtins.currentTime' --eval if: success() || failure() @@ -250,7 +255,12 @@ jobs: run: echo $PATH - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() - run: nix run nixpkgs#fortune + run: | + nix run nixpkgs#fortune + nix profile install nixpkgs#fortune + fortune + nix store gc + nix run nixpkgs#fortune - name: Test bash run: nix-instantiate -E 'builtins.currentTime' --eval if: success() || failure() @@ -355,7 +365,12 @@ jobs: run: echo $PATH - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() - run: nix run nixpkgs#fortune + run: | + nix run nixpkgs#fortune + nix profile install nixpkgs#fortune + fortune + nix store gc + nix run nixpkgs#fortune - name: Test bash run: nix-instantiate -E 'builtins.currentTime' --eval if: success() || failure() diff --git a/src/action/common/configure_shell_profile.rs b/src/action/common/configure_shell_profile.rs index f76a4e3..c27837d 100644 --- a/src/action/common/configure_shell_profile.rs +++ b/src/action/common/configure_shell_profile.rs @@ -120,7 +120,7 @@ impl ConfigureShellProfile { if let Ok(Some(runner)) = User::from_name("runner") { buf += &format!( "/nix/var/nix/profiles/per-user/{}/profile/bin\n", - runner.uid + runner.name ); } create_or_append_files