Skip to content

Commit 0a14175

Browse files
authored
chore/ci: bump version to 0.1.3, run install script with token (#43)
* chore: bump version to 0.1.3 * ci: run install script with token
1 parent e2bf3ff commit 0a14175

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.github/workflows/ci_install.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
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'

bin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "extism-py"
3-
version = "0.1.0"
3+
version = "0.1.3"
44
edition = "2021"
55

66
[dependencies]

install.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
#!/bin/bash
22

33
if [[ -z "${GITHUB_TOKEN}" ]]; then
4-
GITHUB_FLAGS=""
4+
GITHUB_FLAGS=()
55
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')
77
fi
88

99
set -eou pipefail
1010

1111
# Get the latest release
1212
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
1418
if [ -z "$response" ]; then
1519
echo "Error: Failed to fetch the latest release from GitHub API."
1620
exit 1

lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "extism-python-pdk"
3-
version = "0.1.1"
3+
version = "0.1.3"
44
edition = "2021"
55

66
[lib]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python-pdk"
3-
version = "0.1.0"
3+
version = "0.1.3"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)