Skip to content

Commit ae94b65

Browse files
fix version extract
1 parent 887ed41 commit ae94b65

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
modrinthFile.write(line)
2323
githubFile.write(line)
2424

25-
with open("README.md", "r") as inFile:
25+
with open("CHANGELOG.md", "r") as inFile:
2626
for line in inFile.readlines():
27-
if line.startswith("For Minecraft version "):
27+
if line.startswith("- Support Minecraft version "):
2828
githubFile.write(f"\nFor Minecraft version `{line.split('`')[1]}`.")
2929
minecraftVersions = line.split('`')[1].split("-")
3030
envFile.write(f"\nMINECRAFT_VERSION=>={minecraftVersions[0]} <={minecraftVersions[-1]}")
31+
break
3132

3233
zf = zipfile.ZipFile(f"muffintime-data-pack-{version}.zip", "w")
3334
for dirname, subdirs, files in os.walk("."):

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Modrinth Game Versions](https://img.shields.io/modrinth/game-versions/zhYMjiZY?logo=modrinth&style=for-the-badge)](https://modrinth.com/datapack/muffintime-data-pack)
44
[![Modrinth Downloads](https://img.shields.io/modrinth/dt/zhYMjiZY?color=blue&logo=modrinth&style=for-the-badge)](https://modrinth.com/datapack/muffintime-data-pack)
55

6-
This datapack is used to change resources of totems while using [muffintime-resource-pack](https://github.com/RealMuffinTime/muffintime-resource-pack).
6+
This datapack is used to change resources of totems while using [muffintime-resource-pack](https://github.com/RealMuffinTime/muffintime-resource-pack).
77

88
## Features
99

0 commit comments

Comments
 (0)