From 72c3a2377a1afa3027c6f29cb9f3f1a7fbddaa8c Mon Sep 17 00:00:00 2001 From: Elijah Date: Sat, 25 Jun 2022 23:00:12 -0500 Subject: [PATCH] fix: use ELVISH_VERSION to specify elvish test version (#1276) --- .github/workflows/tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dedd888a..99e64c5d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,6 +8,7 @@ on: env: BATS_VERSION: v1.7.0 + ELVISH_VERSION: v0.18.0 jobs: nix: @@ -40,11 +41,11 @@ jobs: sudo apt-get -y install fish curl # Download elvish binary and add to path - curl https://dl.elv.sh/linux-amd64/elvish-v0.18.0.tar.gz -o elvish-v0.18.0.tar.gz - tar xzf elvish-v0.18.0.tar.gz - rm elvish-v0.18.0.tar.gz + curl https://dl.elv.sh/linux-amd64/elvish-${{ env.ELVISH_VERSION }}.tar.gz -o elvish-${{ env.ELVISH_VERSION }}.tar.gz + tar xzf elvish-${{ env.ELVISH_VERSION }}.tar.gz + rm elvish-${{ env.ELVISH_VERSION }}.tar.gz mkdir -p "$HOME/bin" - mv elvish-v0.18.0 "$HOME/bin/elvish" + mv elvish-${{ env.ELVISH_VERSION }} "$HOME/bin/elvish" echo "$HOME/bin" >>"$GITHUB_PATH" - name: Install bats