Skip to content

Commit deed59c

Browse files
committed
chore: bump openai
1 parent 7ad4db0 commit deed59c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let package = Package(
1313
targets: ["TinfoilAI"]),
1414
],
1515
dependencies: [
16-
.package(url: "https://github.com/MacPaw/OpenAI.git", branch: "main"),
16+
.package(url: "https://github.com/MacPaw/OpenAI.git", exact: "0.4.7"),
1717
],
1818
targets: [
1919
.binaryTarget(

update_openai.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
4+
LATEST_TAG=$(curl -sL https://api.github.com/repos/MacPaw/OpenAI/releases/latest | jq -r ".tag_name")
5+
6+
echo "OpenAI package latest version: $LATEST_TAG"
7+
8+
sed -i '.bak' -E "s|(url: \"https://github.com/MacPaw/OpenAI.git\", exact: \")[0-9]+\.[0-9]+\.[0-9]+(\")|\1$LATEST_TAG\2|" Package.swift
9+
10+
git add .
11+
git commit -m "chore: bump openai"
12+
echo "Update completed and commit created. Push to remote."

0 commit comments

Comments
 (0)