Skip to content

Commit

Permalink
Updated arch variable and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkumar committed Dec 2, 2024
1 parent 9c97c0f commit 25bd6d0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ runs:
exit 1
- name: Download CRC
shell: bash
id: download
run: |
if [ ${{ runner.arch }} = "X64" ]; then
TS_ARCH="amd64"
CRC_ARCH="amd64"
else
TS_ARCH="amd64"
URL="https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-${TS_ARCH}.tar.xz"
CRC_ARCH="amd64"
URL="https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-${CRC_ARCH}.tar.xz"
echo "Downloading $URL"
curl -H user-agent:crc--github-action -L "$URL" -o crc-linux.tar.xz --max-time 300 --fail
curl -H user-agent:crc-github-action -L "$URL" -o crc-linux.tar.xz --max-time 300 --fail
SHA256SUM="$(curl -H user-agent:crc-github-action -L ${URL}.sha256 --fail)"
echo "Expected sha256: $SHA256SUM"
echo "Actual sha256: $(sha256sum crc-linux.tar.xz)"
Expand Down

0 comments on commit 25bd6d0

Please sign in to comment.