Skip to content

Commit

Permalink
馃挌 HTTP has \r\n line endings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
foosel committed Jan 18, 2023
1 parent c5b56ae commit 68191cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68191cf

Please sign in to comment.