File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff 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(
Original file line number Diff line number Diff line change 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."
You can’t perform that action at this time.
0 commit comments