Skip to content

Commit dc4958d

Browse files
committed
fix(canary): use curl instead of gh CLI for release download
1 parent b0f296b commit dc4958d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release-canary.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,14 @@ jobs:
7676
set -euo pipefail
7777
TAG="${{ steps.release.outputs.tag }}"
7878
ASSET="openshell-${{ matrix.target }}.tar.gz"
79+
URL="https://github.com/${{ github.repository }}/releases/download/${TAG}/${ASSET}"
7980
8081
echo "Downloading ${ASSET} from release ${TAG}..."
81-
gh release download "${TAG}" \
82-
--repo "${{ github.repository }}" \
83-
--pattern "${ASSET}" \
84-
--output "/tmp/${ASSET}"
82+
curl -fsSL \
83+
-H "Authorization: token ${GH_TOKEN}" \
84+
-H "Accept: application/octet-stream" \
85+
-o "/tmp/${ASSET}" \
86+
"${URL}"
8587
8688
tar -xzf "/tmp/${ASSET}" -C /tmp
8789
install -m 755 /tmp/openshell /usr/local/bin/openshell

0 commit comments

Comments
 (0)