Skip to content

Commit 66742e1

Browse files
committed
Fix release workflow
1 parent 9e7b7be commit 66742e1

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,18 @@ jobs:
4040
elif [[ $MC_VERSION == "1.18" ]]; then
4141
echo "game_versions=1.18,1.18.1,1.18.2" >> $GITHUB_OUTPUT
4242
else
43+
# For other versions, use the exact version and ensure it's not empty
4344
echo "game_versions=$MC_VERSION" >> $GITHUB_OUTPUT
45+
# Add a fallback in case the version extraction fails
46+
if [[ -z "$MC_VERSION" ]]; then
47+
echo "Fallback to a default version"
48+
echo "game_versions=1.19,1.20,1.21" >> $GITHUB_OUTPUT
49+
fi
4450
fi
51+
52+
# Store the game versions for debugging
53+
GAME_VERSIONS=$(grep -oP 'game_versions=\K.*' $GITHUB_OUTPUT)
54+
echo "Compatible game versions: $GAME_VERSIONS"
4555
else
4656
echo "Could not determine Minecraft version from branch name: $BRANCH_NAME"
4757
exit 1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# MinecraftServerAPI
2-
<img src="https://img.shields.io/github/actions/workflow/status/Shweit/MinecraftServerAPI/runtime.yml" /> <img src="https://img.shields.io/github/license/Shweit/MinecraftServerAPI" />
2+
<img src="https://img.shields.io/github/actions/workflow/status/Shweit/MinecraftServerAPI/ci.yml" /> <img src="https://img.shields.io/github/license/Shweit/MinecraftServerAPI" />
33

44
## Overview
55
**MinecraftServerAPI** is a powerful and flexible plugin for Minecraft servers, providing RESTful APIs to interact with the server programmatically. This project allows server administrators to automate tasks, gather information, manage the server more efficiently, and even trigger WebHooks for various server events.

0 commit comments

Comments
 (0)