mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 01:09:53 +07:00
custom: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
57a8b7ccb5
commit
fd7c7508b0
5
.github/workflows/custom.yml
vendored
5
.github/workflows/custom.yml
vendored
@ -41,6 +41,7 @@ jobs:
|
|||||||
ADDONS = ''
|
ADDONS = ''
|
||||||
KERNEL = ''
|
KERNEL = ''
|
||||||
FORMAT = ''
|
FORMAT = ''
|
||||||
|
BRANCH = ''
|
||||||
try:
|
try:
|
||||||
jsonbody = json.loads(issuebody)
|
jsonbody = json.loads(issuebody)
|
||||||
MODEL = jsonbody.get('model', '')
|
MODEL = jsonbody.get('model', '')
|
||||||
@ -48,6 +49,7 @@ jobs:
|
|||||||
ADDONS = jsonbody.get('addons', '')
|
ADDONS = jsonbody.get('addons', '')
|
||||||
KERNEL = jsonbody.get('kernel', '')
|
KERNEL = jsonbody.get('kernel', '')
|
||||||
FORMAT = jsonbody.get('format', '')
|
FORMAT = jsonbody.get('format', '')
|
||||||
|
BRANCH = jsonbody.get('branch', '')
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -56,6 +58,7 @@ jobs:
|
|||||||
set_output("ADDONS", ADDONS)
|
set_output("ADDONS", ADDONS)
|
||||||
set_output("KERNEL", KERNEL)
|
set_output("KERNEL", KERNEL)
|
||||||
set_output("FORMAT", FORMAT)
|
set_output("FORMAT", FORMAT)
|
||||||
|
set_output("BRANCH", BRANCH)
|
||||||
|
|
||||||
# calculates the version number and push
|
# calculates the version number and push
|
||||||
- name: Calculate Version
|
- 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)}')"
|
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"
|
unzip -o "/tmp/arc.img.zip" -d "/tmp"
|
||||||
|
|
||||||
echo "Modify Arc Image"
|
echo "Modify Arc Image"
|
||||||
|
Loading…
Reference in New Issue
Block a user