diff --git a/.github/actions/setup-nix/action.yml b/.github/actions/setup-nix/action.yml index d401ff24b..52278f580 100644 --- a/.github/actions/setup-nix/action.yml +++ b/.github/actions/setup-nix/action.yml @@ -21,7 +21,7 @@ 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" @@ -29,7 +29,7 @@ runs: 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: | @@ -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