Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: update version ci

Minh1411205c6323e5b197
diff --git a/.github/workflows/template-get-update-version.yml b/.github/workflows/template-get-update-version.yml
index 2b5860782..24ec7db92 100644
--- a/.github/workflows/template-get-update-version.yml
+++ b/.github/workflows/template-get-update-version.yml
@@ -22,6 +22,8 @@ jobs:
- name: Update app version based on latest release tag with build number
id: version_update
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Function to get the latest release tag
get_latest_tag() {
@@ -29,7 +31,7 @@ jobs:
local max_retries=3
local tag
while [ $retries -lt $max_retries ]; do
- tag=$(curl -s https://api.github.com/repos/janhq/jan/releases/latest | jq -r .tag_name)
+ tag=$(curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/janhq/jan/releases/latest | jq -r .tag_name)
if [ -n "$tag" ] && [ "$tag" != "null" ]; then
echo $tag
return