From 43753c2f7c8aa37a06bb316217631ed1911c7748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Sat, 25 Jun 2022 00:07:30 +0300 Subject: [PATCH] Fix broken Nushell installation in CI (#2364) --- .github/workflows/check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5481f69..097d904 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -49,10 +49,10 @@ jobs: echo "try $i" && \ ${{ runner.os == 'Linux' && 'sudo apt-get update -y && sudo apt-get install snapd fish csh -y' || true }} && \ ${{ runner.os == 'Linux' && 'sudo apt-get install curl wget -y' || true }} && \ - ${{ runner.os == 'Linux' && 'nushell_url=$(curl -s https://api.github.com/repos/nushell/nushell/releases/latest | grep "browser_" | cut -d\" -f4 | grep .tar.gz)' || true }} && \ + ${{ runner.os == 'Linux' && 'nushell_url=$(curl -s https://api.github.com/repos/nushell/nushell/releases/latest | grep "browser_" | grep "x86_64" | grep "linux" | grep "gnu" | cut -d\" -f4 )' || true }} && \ ${{ runner.os == 'Linux' && 'wget -O nushell.tar.gz $nushell_url' || true }} && \ - ${{ runner.os == 'Linux' && 'tar -zxf nushell.tar.gz --one-top-level=nushell --strip-components=2' || true }} && \ - ${{ runner.os == 'Linux' && 'sudo cp nushell/nu /usr/bin' || true }} && \ + ${{ runner.os == 'Linux' && 'tar -zxf nushell.tar.gz' || true }} && \ + ${{ runner.os == 'Linux' && 'sudo cp nu /usr/bin' || true }} && \ ${{ runner.os == 'Windows' && 'choco install nushell' || true }} && \ ${{ runner.os == 'macOS' && 'brew update && brew install fish tcsh nushell' || true }} && \ exit 0 || true;