Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update module releases to 1.20.2 #909

Merged
merged 1 commit into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gm4/plugins/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def update_patch(ctx: Context):
deps = _traverse_includes(id)
if packs is manifest_cache.modules:
deps |= {"base"} # scan the base directory if this is a module
deps_dirs = [element for sublist in [[f"{d}/data", f"{d}/*py"] for d in deps] for element in sublist]
deps_dirs = [element for sublist in [[f"{d}/data", f"{d}/overlay_*/data", f"{d}/*py"] for d in deps] for element in sublist]

# add watches to skins this module uses from other modules. NOTE this could be done in a more extendable way in the future, rather than "hardcoded"
skin_dep_dirs: list[str] = []
Expand All @@ -171,7 +171,7 @@ def update_patch(ctx: Context):

watch_dirs = deps_dirs+skin_dep_dirs

diff = run(["git", "diff", last_commit, "--shortstat", "--", f"{id}/data", f"{id}/*.py"] + watch_dirs) if last_commit else True
diff = run(["git", "diff", last_commit, "--shortstat", "--", f"{id}/data", f"{id}/overlay_*/data", f"{id}/*.py"] + watch_dirs) if last_commit else True

if not diff and released:
# No changes were made, keep the same patch version
Expand Down
2 changes: 1 addition & 1 deletion gm4/plugins/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
MODRINTH_AUTH_KEY = "BEET_MODRINTH_TOKEN"
SMITHED_API = "https://api.smithed.dev/v2"
SMITHED_AUTH_KEY = "BEET_SMITHED_TOKEN"
SUPPORTED_GAME_VERSIONS = ["1.20", "1.20.1"]
SUPPORTED_GAME_VERSIONS = ["1.20", "1.20.1", "1.20.2"]
USER_AGENT = "Gamemode4Dev/GM4_Datapacks/release-pipeline ([email protected])"

class ModrinthConfig(PluginOptions):
Expand Down
Loading