We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cd2b03 commit f05e5a7Copy full SHA for f05e5a7
.github/workflows/conda_release.yml
@@ -50,7 +50,15 @@ jobs:
50
51
# Download tarball and compute SHA256 checksum
52
curl -L $TAR_URL -o release.tar.gz
53
- SHA256=$(sha256sum release.tar.gz | cut -d' ' -f1)
+
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
62
63
# Extract OWNER and REPO from GITHUB_REPOSITORY (format: owner/repo)
64
REPO_OWNER=${GITHUB_REPOSITORY%%/*}
0 commit comments