Skip to content

Commit f05e5a7

Browse files
committed
checksum fix
1 parent 1cd2b03 commit f05e5a7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/conda_release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ jobs:
5050
5151
# Download tarball and compute SHA256 checksum
5252
curl -L $TAR_URL -o release.tar.gz
53-
SHA256=$(sha256sum release.tar.gz | cut -d' ' -f1)
53+
54+
if command -v sha256sum &>/dev/null; then
55+
# linux
56+
SHA256=$(sha256sum release.tar.gz | cut -d' ' -f1)
57+
else
58+
# mac
59+
SHA256=$(shasum -a 256 release.tar.gz | awk '{ print $1 }')
60+
fi
61+
5462
5563
# Extract OWNER and REPO from GITHUB_REPOSITORY (format: owner/repo)
5664
REPO_OWNER=${GITHUB_REPOSITORY%%/*}

0 commit comments

Comments
 (0)