Skip to content

Commit 0cd451c

Browse files
committed
Use release id instead of release tag
1 parent 0b80321 commit 0cd451c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
env:
7070
GH_TOKEN: ${{ secrets.STAGEHAND_SOURCE_TOKEN || github.token }}
7171
RELEASE_TAG: ${{ steps.stagehand-server-release.outputs.tag }}
72+
RELEASE_ID: ${{ steps.stagehand-server-release.outputs.id }}
7273
ASSET_NAME: ${{ matrix.binary_name }}
7374
OUTPUT_PATH: ${{ matrix.output_path }}
7475
shell: bash
@@ -92,7 +93,7 @@ jobs:
9293
curl -fsSL \
9394
-H "Authorization: Bearer ${GH_TOKEN}" \
9495
-H "Accept: application/vnd.github+json" \
95-
"https://api.github.com/repos/browserbase/stagehand/releases/tags/${RELEASE_TAG}" \
96+
"https://api.github.com/repos/browserbase/stagehand/releases/${RELEASE_ID}" \
9697
| python -c 'import json,sys; d=json.load(sys.stdin); a=next((x for x in d.get("assets",[]) if x.get("name")==sys.argv[1]), None); print(a.get("url","") if a else "")' \
9798
"${ASSET_NAME}"
9899
)"

0 commit comments

Comments
 (0)