Skip to content

Commit 9efdedd

Browse files
committedDec 17, 2020
Fix PATH in Githb Actions
1 parent 274e657 commit 9efdedd

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
 

‎.github/workflows/cron.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,13 @@ jobs:
7676
run: |
7777
nix-env -iA nixpkgs.nixFlakes
7878
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
79-
$HOME/.nix-profile/bin/nix --version
79+
nix --version
8080
cat /etc/nix/nix.conf
81+
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH
8182
8283
- name: Building import_scripts
8384
run: |
84-
$HOME/.nix-profile/bin/nix build ./#packages.x86_64-linux.import_scripts
85+
nix build ./#packages.x86_64-linux.import_scripts
8586
8687
- name: Import ${{ matrix.channel }} channel
8788
run: |

‎.github/workflows/main.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@ jobs:
3232
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
3333
nix --version
3434
cat /etc/nix/nix.conf
35+
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH
36+
3537
3638
- name: Building import_scripts
3739
run: |
38-
$HOME/.nix-profile/bin/nix build ./#packages.x86_64-linux.import_scripts
40+
nix build ./#packages.x86_64-linux.import_scripts
3941
4042
- name: Building search.nixos.org
4143
run: |
42-
$HOME/.nix-profile/bin/nix build ./#packages.x86_64-linux.frontend
44+
nix build ./#packages.x86_64-linux.frontend
4345
mkdir ./dist
4446
cp -RL ./result/* ./dist/
4547

0 commit comments

Comments
 (0)