Compare commits

...

3 Commits

Author SHA1 Message Date
github-actions[bot]
d137f32c2f Auto Update Factorio to stable version: 2.0.8 experimental version: 2.0.9 2024-10-22 18:29:48 +00:00
Florian Kinder
4f3c5f2e93 Do not run the build in pull requests
Took 6 minutes
2024-10-22 19:33:29 +02:00
Florian Kinder
f7e9dea263
Improve logging in updating mods (#518)
Took 55 minutes
2024-10-22 19:28:25 +02:00
4 changed files with 11 additions and 6 deletions

View File

@ -6,7 +6,6 @@ on:
- master
tags:
- latest
pull_request:
jobs:
build:

View File

@ -6,7 +6,8 @@
[中文](./README_zh_CN.md)
<!-- start autogeneration tags -->
* `2`, `2.0`, `2.0.8`, `latest`, `stable`, `stable-2.0.8`
* `2.0.9`, `latest`
* `2`, `2.0`, `2.0.8`, `stable-2.0.8`
* `1`, `1.1`, `1.1.110`, `stable-1.1.110`
* `1.0`, `1.0.0`
* `0.17`, `0.17.79`

View File

@ -60,12 +60,17 @@
"2.0.8": {
"sha256": "d9594c4d552a3e4f965b188a4774da8c8b010fc23ddb0efc63b1d94818dde1ca",
"tags": [
"latest",
"stable",
"stable-2.0.8",
"2",
"2.0",
"2.0.8"
]
},
"2.0.9": {
"sha256": "f499077b3e2c1313452c350f1faf17db31cae2a0fa738f69166e97c3caa3c86d",
"tags": [
"latest",
"2.0.9"
]
}
}

View File

@ -28,7 +28,7 @@ update_mod()
MOD_NAME="$1"
MOD_NAME_ENCODED="${1// /%20}"
print_step "Checking for update of mod $MOD_NAME..."
print_step "Checking for update of mod $MOD_NAME for factorio $FACTORIO_VERSION ..."
MOD_INFO_URL="$MOD_BASE_URL/api/mods/$MOD_NAME_ENCODED"
MOD_INFO_JSON=$(curl --silent "$MOD_INFO_URL")
@ -54,7 +54,7 @@ update_mod()
return 0
fi
print_step "Downloading..."
print_step " Downloading $MOD_FILENAME"
FULL_URL="$MOD_BASE_URL$MOD_URL?username=$USERNAME&token=$TOKEN"
HTTP_STATUS=$(curl --silent -L -w "%{http_code}" -o "$MOD_DIR/$MOD_FILENAME" "$FULL_URL")