mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 13:32:06 +01:00
Fix string interpolation
This commit is contained in:
parent
0e85ec287f
commit
6265732741
1 changed files with 3 additions and 2 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -226,9 +226,10 @@ jobs:
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
with:
|
with:
|
||||||
source-url: https://github.com/DeterminateSystems/nix-installer/releases/download/v${{ matrix.versions.nix-installer }}/nix-installer-x86_64-linux
|
source-url: https://github.com/DeterminateSystems/nix-installer/releases/download/v${{ matrix.versions.nix-installer }}/nix-installer-x86_64-linux
|
||||||
- run: |
|
- name: Compare Nix version with expected version
|
||||||
|
run: |
|
||||||
NIX_VERSION_OUTPUT=$(nix --version)
|
NIX_VERSION_OUTPUT=$(nix --version)
|
||||||
NIX_VERSION=$(echo "{NIX_VERSION}" | awk '{print $NF}')
|
NIX_VERSION=$(echo "${NIX_VERSION}" | awk '{print $NF}')
|
||||||
EXPECTED_OUTPUT="nix (Nix) ${{ matrix.versions.nix }}"
|
EXPECTED_OUTPUT="nix (Nix) ${{ matrix.versions.nix }}"
|
||||||
if [ "${NIX_VERSION_OUTPUT}" != "${EXPECTED_OUTPUT}" ]; then
|
if [ "${NIX_VERSION_OUTPUT}" != "${EXPECTED_OUTPUT}" ]; then
|
||||||
echo "Nix version ${NIX_VERSION} didn't match expected version ${{ matrix.versions.nix }}"
|
echo "Nix version ${NIX_VERSION} didn't match expected version ${{ matrix.versions.nix }}"
|
||||||
|
|
Loading…
Reference in a new issue