page: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2025-02-03 18:49:04 +01:00
parent be2e7feb02
commit 8ae8f8df0c
3 changed files with 258 additions and 242 deletions

View File

@@ -74,15 +74,8 @@ jobs:
- name: Get Config Data for Arc
run: |
REPO="https://github.com/AuxXxilium/arc-configs"
PRERELEASE="true"
TAG=""
if [ "${PRERELEASE}" = "true" ]; then
TAG="$(curl -skL --connect-timeout 10 "${REPO}/tags" | grep /refs/tags/.*\.zip | sed -r 's/.*\/refs\/tags\/(.*)\.zip.*$/\1/' | sort -rV | head -1)"
else
LATESTURL="$(curl -skL --connect-timeout 10 -w %{url_effective} -o /dev/null "${REPO}/releases/latest")"
TAG="${LATESTURL##*/}"
fi
LATESTURL="$(curl -skL --connect-timeout 10 -w %{url_effective} -o /dev/null "${REPO}/releases/latest")"
TAG="${LATESTURL##*/}"
[ "${TAG:0:1}" = "v" ] && TAG="${TAG:1}"
rm -f configs.zip
STATUS=$(curl -kL --connect-timeout 10 -w "%{http_code}" "${REPO}/releases/download/${TAG}/configs-${TAG}.zip" -o "configs.zip")
@@ -98,9 +91,9 @@ jobs:
- name: Get data
run: |
pip install -r scripts/requirements.txt
python scripts/func.py getmodels -w "." -j "docs/models.json"
python scripts/func.py getaddons -w "." -j "docs/addons.json"
python scripts/func.py getpats -w "." -j "docs/pats.json"
python scripts/functions.py getmodels -w "." -j "docs/models.json"
python scripts/functions.py getaddons -w "." -j "docs/addons.json"
python scripts/functions.py getpats -w "." -j "docs/pats.json"
- name: Upload to Artifacts
if: success()