Skip to content

Commit c46c953

Browse files
committed
workflows: stop hardcoding openslide-bin zip URL template
Use `gh release download` instead. Signed-off-by: Benjamin Gilbert <[email protected]>
1 parent 7f8af4f commit c46c953

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/python.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ jobs:
179179
jq -r .[0].tagName | \
180180
tr -d v)
181181
zipname="openslide-win64-${release}"
182-
curl -LfO "https://github.com/openslide/openslide-bin/releases/download/v${release}/${zipname}.zip"
182+
gh release download -R openslide/openslide-bin "v${release}" \
183+
--pattern "${zipname}.zip"
183184
7z x ${zipname}.zip
184185
echo "OPENSLIDE_PATH=c:\\openslide\\${zipname}\\bin" >> $GITHUB_ENV
185186
- name: Build wheel

0 commit comments

Comments
 (0)