custom: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-10-24 20:17:24 +02:00
parent 57a8b7ccb5
commit fd7c7508b0

View File

@ -41,6 +41,7 @@ jobs:
ADDONS = ''
KERNEL = ''
FORMAT = ''
BRANCH = ''
try:
jsonbody = json.loads(issuebody)
MODEL = jsonbody.get('model', '')
@ -48,6 +49,7 @@ jobs:
ADDONS = jsonbody.get('addons', '')
KERNEL = jsonbody.get('kernel', '')
FORMAT = jsonbody.get('format', '')
BRANCH = jsonbody.get('branch', '')
except ValueError as e:
pass
@ -56,6 +58,7 @@ jobs:
set_output("ADDONS", ADDONS)
set_output("KERNEL", KERNEL)
set_output("FORMAT", FORMAT)
set_output("BRANCH", BRANCH)
# calculates the version number and push
- name: Calculate Version
@ -97,7 +100,7 @@ jobs:
}
TAG="$(curl -m 5 -kL https://api.github.com/repos/AuxXxilium/arc/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')"
curl -kL "https://github.com/AuxXxilium/arc/releases/download/${TAG}/arc-${TAG}.img.zip" -o "/tmp/arc.img.zip"
curl -kL "https://github.com/AuxXxilium/arc/releases/download/${TAG}/arc-${TAG}-${{ env.BRANCH }}.img.zip" -o "/tmp/arc.img.zip"
unzip -o "/tmp/arc.img.zip" -d "/tmp"
echo "Modify Arc Image"