Skip to content

Commit

Permalink
Use curl to download.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Jan 26, 2024
1 parent 81c6327 commit 22b4f62
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ runs:
echo "UNSUPPORTED RUNNER: $RUNNER_OS"
exit 1
fi
echo "TOIT_FILE=$TOIT_FILE" >> $GITHUB_OUTPUT
if [[ $TOIT_VERSION = latest ]]; then
echo "TOIT_URL=https://github.com/toitlang/toit/releases/latest/download/$TOIT_FILE" >> $GITHUB_OUTPUT
else
Expand Down Expand Up @@ -72,10 +74,11 @@ runs:
echo TOIT_INSTALL_DIR=$TOIT_INSTALL_DIR >> $GITHUB_OUTPUT
- name: Download Toit
uses: suisei-cn/actions-download-file@v1.3.0
with:
url: ${{ steps.setup_constants.outputs.TOIT_URL }}
target: ${{ steps.tmp-dir.outputs.TOIT_INSTALL_DIR }}
shell: bash
run: |
cd '${{ steps.tmp-dir.outputs.TOIT_INSTALL_DIR }}'
# Downloads the tar.gz file.
curl -L -o ${{ steps.setup_constants.outputs.TOIT_FILE }} ${{ steps.setup_constants.outputs.TOIT_URL }}
- name: Extract Toit
shell: bash
Expand Down

0 comments on commit 22b4f62

Please sign in to comment.