Compare commits

..

3 Commits

Author SHA1 Message Date
Klop233
a35c3ec981 Update CI 2024-04-13 18:28:07 +08:00
Klop233
0461985e95 Update CI 2024-04-13 18:15:03 +08:00
Klop233
04b1668fa7 Update CI 2024-04-13 18:00:45 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ on:
permissions: write-all
jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest
environment: default
steps:

View File

@@ -27,6 +27,7 @@ echo "Authentication: $secret_v2"
json=$(printf "{\\\"channel\\\":\\\"%s\\\", \\\"jar_name\\\":\\\"%s\\\", \\\"sha256\\\":\\\"%s\\\", \\\"tag\\\":\\\"%s\\\", \\\"time\\\":\\\"%s\\\", \\\"changes\\\":\\\"%s\\\"}" \
"$channel" "$jar_name" "$jar_sha256" "$tag" "$ctime" "$changes")
echo "[DEBUG] $json"
echo "[DEBUG] $changes"
echo "[DEBUG] curl --location --request POST \"https://api.luminolmc.com/v2/projects/$project_id/$mcversion/build/commit\" \
-H \"Content-Type: application/x-www-form-urlencoded\" \
-H \"Authorization: $secret_v2\" \
@@ -36,7 +37,6 @@ echo "[DEBUG] curl --location --request POST \"https://api.luminolmc.com/v2/proj
--data-urlencode \"release_tag=$tag\" \
--data-urlencode \"time=$ctime\" \
--data-urlencode \"changes=$changes\""
curl -L --request POST "https://api.luminolmc.com/v2/projects/$project_id/$mcversion/build/commit" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Authorization: $secret_v2" \