17
.github/workflows/data.yml
vendored
17
.github/workflows/data.yml
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user