Update URL and download

This commit is contained in:
2025-09-05 14:42:09 +03:00
parent 3e0dd27e12
commit 7fc300c04e
3 changed files with 9 additions and 8 deletions
+5 -5
View File
@@ -1,9 +1,9 @@
#!/bin/bash
# Gitea repository
REPO="EnumDev/bpm"
# Github repository
REPO="EnumeratedDev/bpm"
# Get version from tag name using Gitea Rest API
VERSION=$(curl -s -L https://git.enumerated.dev/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name)
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/tags | jq -r '.[0].name')
echo "$VERSION"
echo "$TAG_NAME"