Skip to content

Commit

Permalink
try fix nix pre-installed path variable
Browse files Browse the repository at this point in the history
Signed-off-by: Thing-han, Lim <[email protected]>
  • Loading branch information
potsrevennil committed Sep 18, 2024
1 parent be360b3 commit b235606
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup-nix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ runs:
id: pre-check-nix
continue-on-error: true
if: ${{ inputs.nix-pre-installed == 'true' }}
shell: bash
shell: bash -e -o pipefail {0}
run: |
nix --version
nix config show | grep -E "^trusted-users = .*$USER"
nix config show | grep -E "^experimental-features = .*flakes"
nix config show | grep -E "^experimental-features = .*nix-command"
- name: Install nix
if: steps.pre-check-nix.outcome != 'success' && ${{ inputs.nix-pre-installed == 'true' }}
if: needs.pre-check-nix.result != 'success' && ${{ inputs.nix-pre-installed == 'true' }}

shell: bash
run: |
Expand All @@ -38,7 +38,7 @@ runs:
--extra-conf "experimental-features = nix-command flakes" \
- name: Post-check nix
if: ${{ inputs.nix-pre-installed == 'true' }}
shell: bash
shell: bash -e -o pipefail {0}
run: |
nix config check
- uses: DeterminateSystems/magic-nix-cache-action@v8
Expand Down

0 comments on commit b235606

Please sign in to comment.