From 6265732741cc6d44558fa639993f5ffe9786f88b Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Thu, 16 May 2024 20:50:21 -0300 Subject: [PATCH] Fix string interpolation --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68a1cab..30c4967 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -226,9 +226,10 @@ jobs: - uses: DeterminateSystems/nix-installer-action@main with: 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=$(echo "{NIX_VERSION}" | awk '{print $NF}') + NIX_VERSION=$(echo "${NIX_VERSION}" | awk '{print $NF}') EXPECTED_OUTPUT="nix (Nix) ${{ matrix.versions.nix }}" if [ "${NIX_VERSION_OUTPUT}" != "${EXPECTED_OUTPUT}" ]; then echo "Nix version ${NIX_VERSION} didn't match expected version ${{ matrix.versions.nix }}"