Skip to content

Commit

Permalink
S
Browse files Browse the repository at this point in the history
  • Loading branch information
potsrevennil committed Jan 2, 2025
1 parent 528607e commit 895b2fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/actions/setup-nix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ runs:
--no-confirm
else
sh <(curl -L https://nixos.org/nix/install) --no-daemon
fi
if [[ ! -z $GH_TOKEN ]]; then
Expand Down Expand Up @@ -147,7 +146,11 @@ runs:
echo NIX_SHELL="${{ inputs.devShell }}" >> $GITHUB_ENV
nix_extra_flags="${{ inputs.verbose == 'false' && '--quiet' || '' }} --experimental-features \"nix-command flakes\""
echo SHELL="$(which nix) develop $nix_extra_flags .#${{ inputs.devShell }} -c bash -e {0}" >> $GITHUB_ENV
if [[ ${{ inputs.devShell }} == 'default' || ${{ inputs.devShell }} == '' ]]; then
echo SHELL="$(which nix) develop $nix_extra_flags -c bash -e {0}" >> $GITHUB_ENV
else
echo SHELL="$(which nix) develop $nix_extra_flags .#${{ inputs.devShell }} -c bash -e {0}" >> $GITHUB_ENV
fi
echo "::endgroup::"
- name: Prepare nix dev shell
shell: ${{ env.SHELL }}
Expand Down

0 comments on commit 895b2fd

Please sign in to comment.