mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-23 11:49:16 +01:00
Fix add ring/release_type selection option (#284)
* fix add ring/build_type selection option * Add "insider fast" channel for downloading wsa * Edit release_type description
This commit is contained in:
parent
02dfb76dfe
commit
b5dd805d13
8
.github/workflows/magisk.yml
vendored
8
.github/workflows/magisk.yml
vendored
@ -18,7 +18,7 @@ on:
|
|||||||
- arm64
|
- arm64
|
||||||
- x64 & arm64
|
- x64 & arm64
|
||||||
release_type:
|
release_type:
|
||||||
description: "WSA Build type"
|
description: "WSA release type"
|
||||||
required: true
|
required: true
|
||||||
default: "retail"
|
default: "retail"
|
||||||
type: choice
|
type: choice
|
||||||
@ -26,6 +26,7 @@ on:
|
|||||||
- retail
|
- retail
|
||||||
- release preview
|
- release preview
|
||||||
- insider slow
|
- insider slow
|
||||||
|
- insider fast
|
||||||
magisk_apk:
|
magisk_apk:
|
||||||
description: "Magisk version"
|
description: "Magisk version"
|
||||||
required: true
|
required: true
|
||||||
@ -110,9 +111,10 @@ jobs:
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
|
|
||||||
arch = "${{ matrix.arch }}"
|
arch = "${{ matrix.arch }}"
|
||||||
build_type_map = {"retail": "Retail", "release preview": "RP", "insider slow": "WIS"}
|
release_type_map = {"retail": "Retail", "release preview": "RP", "insider slow": "WIS", "insider fast": "WIF"}
|
||||||
|
release_type = release_type_map["${{ github.event.inputs.release_type }}"] if "${{ github.event.inputs.release_type }}" != "" else "Retail"
|
||||||
|
|
||||||
res = requests.post("https://store.rg-adguard.net/api/GetFiles", "type=CategoryId&url=858014f3-3934-4abe-8078-4aa193e74ca8&ring={ build_type_map[github.event.inputs.release_type] }&lang=en-US", headers={
|
res = requests.post("https://store.rg-adguard.net/api/GetFiles", f"type=CategoryId&url=858014f3-3934-4abe-8078-4aa193e74ca8&ring={release_type}&lang=en-US", headers={
|
||||||
"content-type": "application/x-www-form-urlencoded"
|
"content-type": "application/x-www-form-urlencoded"
|
||||||
})
|
})
|
||||||
html = BeautifulSoup(res.content, "lxml")
|
html = BeautifulSoup(res.content, "lxml")
|
||||||
|
Loading…
Reference in New Issue
Block a user