From 68191cfbf439c14f96879c1fbc8e87ce46ae37cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 18 Jan 2023 17:38:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20HTTP=20has=20\r\n=20line=20endin?= =?UTF-8?q?gs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So we need to strip \r, \n already gets taken care of by the whole pipe. Also limit to first location header just in case. --- .github/workflows/test_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 22371c0b4..925341c96 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -56,7 +56,7 @@ jobs: steps: - name: 👀 Determine latest release run: | - OCTOPRINT_VERSION=$(curl -i https://github.com/OctoPrint/OctoPrint/releases/latest | grep -i location: | awk -F/ '{print $NF}' | tr -d '\n') + OCTOPRINT_VERSION=$(curl -i https://github.com/OctoPrint/OctoPrint/releases/latest | grep -i location: | head -n1 | awk -F/ '{print $NF}' | tr -d '\r') echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV - name: 🐍 Set up Python ${{ matrix.python }} uses: actions/setup-python@v4