File tree Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1818 - uses : actions/checkout@v2
1919
2020 - name : Test Install Script
21+ env :
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2123 run : |
2224 bash ./install.sh
2325 if : runner.os != 'Windows'
Original file line number Diff line number Diff line change 11[package ]
22name = " extism-py"
3- version = " 0.1.0 "
3+ version = " 0.1.3 "
44edition = " 2021"
55
66[dependencies ]
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33if [[ -z " ${GITHUB_TOKEN} " ]]; then
4- GITHUB_FLAGS=" "
4+ GITHUB_FLAGS=()
55else
6- GITHUB_FLAGS=" --header \ " Authorization: Bearer $GITHUB_TOKEN \" --header \" X-GitHub-Api-Version: 2022-11-28\" "
6+ GITHUB_FLAGS=( ' --header' " Authorization: Bearer $GITHUB_TOKEN " ' --header' ' X-GitHub-Api-Version: 2022-11-28' )
77fi
88
99set -eou pipefail
1010
1111# Get the latest release
1212RELEASE_API_URL=" https://api.github.com/repos/extism/python-pdk/releases/latest"
13- response=$( curl $GITHUB_FLAGS -s " $RELEASE_API_URL " )
13+ if [[ ${# GITHUB_FLAGS[@]} -eq 0 ]]; then
14+ response=$( curl -s " $RELEASE_API_URL " )
15+ else
16+ response=$( curl " ${GITHUB_FLAGS[@]} " -s " $RELEASE_API_URL " )
17+ fi
1418if [ -z " $response " ]; then
1519 echo " Error: Failed to fetch the latest release from GitHub API."
1620 exit 1
Original file line number Diff line number Diff line change 11[package ]
22name = " extism-python-pdk"
3- version = " 0.1.1 "
3+ version = " 0.1.3 "
44edition = " 2021"
55
66[lib ]
Original file line number Diff line number Diff line change 11[project ]
22name = " python-pdk"
3- version = " 0.1.0 "
3+ version = " 0.1.3 "
44description = " Add your description here"
55readme = " README.md"
66requires-python = " >=3.12"
You can’t perform that action at this time.
0 commit comments