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 18
18
- uses : actions/checkout@v2
19
19
20
20
- name : Test Install Script
21
+ env :
22
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
23
run : |
22
24
bash ./install.sh
23
25
if : runner.os != 'Windows'
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " extism-py"
3
- version = " 0.1.0 "
3
+ version = " 0.1.3 "
4
4
edition = " 2021"
5
5
6
6
[dependencies ]
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
if [[ -z " ${GITHUB_TOKEN} " ]]; then
4
- GITHUB_FLAGS=" "
4
+ GITHUB_FLAGS=()
5
5
else
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' )
7
7
fi
8
8
9
9
set -eou pipefail
10
10
11
11
# Get the latest release
12
12
RELEASE_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
14
18
if [ -z " $response " ]; then
15
19
echo " Error: Failed to fetch the latest release from GitHub API."
16
20
exit 1
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " extism-python-pdk"
3
- version = " 0.1.1 "
3
+ version = " 0.1.3 "
4
4
edition = " 2021"
5
5
6
6
[lib ]
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " python-pdk"
3
- version = " 0.1.0 "
3
+ version = " 0.1.3 "
4
4
description = " Add your description here"
5
5
readme = " README.md"
6
6
requires-python = " >=3.12"
You can’t perform that action at this time.
0 commit comments