9
0
mirror of https://github.com/Kas-tle/java2bedrock.sh.git synced 2025-12-29 03:19:06 +00:00

Attempt to address #1917

This commit is contained in:
Kas-tle
2022-12-03 14:02:01 -08:00
committed by GitHub
parent 7e752d6513
commit c2ae8c20ec

View File

@@ -28,7 +28,7 @@ jobs:
run: |
echo ${{ toJSON(steps.parse-issue.outputs.data) }} | jq '
def test_input($input; $default):
if $input == "*No response*" then $default else ($input | tostring | gsub("\\\\";"")) end;
if ($input == "*No response*" or $input == "None") then $default else ($input | tostring | gsub("\\\\";"")) end;
{
"pack_url": .["java-pack-direct-download-url"].text[1:-1],
"default_pack_url": test_input(.["default-pack-direct-download-url"].text; " null ")[1:-1],