Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ jobs:
run: |
VERSION="${{ steps.meta.outputs.version }}"
mkdir -p dist/
# Fetch PyPI metadata and extract both URLs
curl -sf "https://pypi.org/pypi/gemstack/$VERSION/json" > pypi.json
# Use PyPI metadata already fetched by the Wait step
if [ ! -s pypi.json ]; then
echo "::error::Failed to fetch PyPI metadata for gemstack $VERSION"
echo "::error::PyPI metadata file missing or empty!"
exit 1
fi
WHEEL_URL=$(python3 -c "import sys,json; urls=json.load(open('pypi.json'))['urls']; print(next(u['url'] for u in urls if u['packagetype']=='bdist_wheel'))")
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/update-formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ jobs:
id: sha
run: |
VERSION="${{ steps.version.outputs.version }}"
# Fetch PyPI metadata
curl -sf "https://pypi.org/pypi/gemstack/$VERSION/json" > pypi.json
# Use PyPI metadata already fetched by the Wait step
URL=$(python3 -c "import sys,json; urls=json.load(open('pypi.json'))['urls']; print(next(u['url'] for u in urls if u['packagetype']=='sdist'))")
echo "Downloading $URL"
curl -fSL "$URL" -o gemstack.tar.gz
Expand Down
Loading