Skip to content

Commit

Permalink
More update-otp-patches workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HoloRin committed Aug 23, 2022
1 parent a776ce3 commit 6339cf0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update-otp-patches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
fi
ARCHIVE_RBE_URL="https://github.com/erlang/otp/releases/download/${TAG_NAME}/otp_src_${VERSION}.tar.gz"
wget --continue --quiet --output-document="/tmp/OTP.tar.gz" "${ARCHIVE_RBE_URL}"
SHA="$(shasum -a 256 "/tmp/OTP.tar.gz" | awk '{print $1}')"
wget --continue --quiet --output-document="/tmp/otp_src_${VERSION}.tar.gz" "${ARCHIVE_RBE_URL}"
SHA="$(shasum -a 256 "/tmp/otp_src_${VERSION}.tar.gz" | awk '{print $1}')"
if [[ -z "${SHA}" ]]; then
echo "Failed to determine SHA for ${TAG_NAME}"
exit 1
fi
ARCHIVE_OCI_URL="https://github.com/erlang/otp/archive/OTP-${VERSION}.tar.gz"
wget --continue --quiet --output-document="/tmp/OTP.tar.gz" "${ARCHIVE_OCI_URL}"
SHA2="$(shasum -a 256 "/tmp/OTP.tar.gz" | awk '{print $1}')"
wget --continue --quiet --output-document="/tmp/OTP-${VERSION}.tar.gz" "${ARCHIVE_OCI_URL}"
SHA2="$(shasum -a 256 "/tmp/OTP-${VERSION}.tar.gz" | awk '{print $1}')"
if [[ -z "${SHA2}" ]]; then
echo "Failed to determine SHA2 for ${TAG_NAME}"
Expand Down

0 comments on commit 6339cf0

Please sign in to comment.