From dcb514051dfee88d3a45a0b2c7170b4f2528c008 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Fri, 15 Dec 2023 18:02:24 +0100 Subject: [PATCH] thanks Bash (missing quotes in boolean tests for undefined variables) (#143) follow-up to - https://github.com/amtoine/nu-git-manager/pull/142 --- .github/workflows/nupm-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nupm-tests.yml b/.github/workflows/nupm-tests.yml index 868c6b2..a1dab40 100644 --- a/.github/workflows/nupm-tests.yml +++ b/.github/workflows/nupm-tests.yml @@ -58,10 +58,10 @@ jobs: echo "target: ${{github.base_ref}}" echo "ref: ${{github.ref}}" - if [[ ${{ github.base_ref }} == 'nightly' ]]; then + if [[ '${{ github.base_ref }}' == 'nightly' ]]; then echo "NU_VERSION='nightly'" >> $GITHUB_ENV echo "NUPM_REVISION='main'" >> $GITHUB_ENV - elif [[ ${{ github.ref }} == 'refs/heads/nightly' ]]; then + elif [[ '${{ github.ref }}' == 'refs/heads/nightly' ]]; then echo "NU_VERSION='nightly'" >> $GITHUB_ENV echo "NUPM_REVISION='main'" >> $GITHUB_ENV else