-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NeoForge support to add_mod_port workflow
- Loading branch information
1 parent
2cf580f
commit 9a5d2bb
Showing
2 changed files
with
49 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,18 @@ on: | |
mod: | ||
description: "Mod ID (as it appears in config.toml)" | ||
required: true | ||
modloader: | ||
description: "Mod loader (fabric or neoforge)" | ||
required: true | ||
mod_version: | ||
description: "Mod version (without v or -MC)" | ||
required: true | ||
mc_version: | ||
description: "Minecraft version" | ||
required: true | ||
fapi_version: | ||
description: "Fabric API version" | ||
required: true | ||
description: "Fabric API version (if modloader is fabric)" | ||
required: false | ||
file_id: | ||
description: "CurseForge file ID" | ||
required: true | ||
|
@@ -44,18 +47,20 @@ jobs: | |
run: | | ||
python _scripts/add_mod_port.py \ | ||
"${{ github.event.inputs.mod }}" \ | ||
"${{ github.event.inputs.modloader }}" \ | ||
"${{ github.event.inputs.mod_version }}" \ | ||
"${{ github.event.inputs.mc_version }}" \ | ||
"${{ github.event.inputs.fapi_version }}" \ | ||
${{ github.event.inputs.modloader == 'fabric' && format('--fapi-version {0}', github.event.inputs.fapi_version) || '' }} \ | ||
"${{ github.event.inputs.file_id }}" | ||
- name: Commit changes | ||
run: | | ||
MOD="${{ github.event.inputs.mod }}" | ||
MOD_VERSION="${{ github.event.inputs.mod_version }}" | ||
MC_VERSION="${{ github.event.inputs.mc_version }}" | ||
MODLOADER="${{ github.event.inputs.modloader }}" | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Wurst-Bot" | ||
git add . | ||
git commit -m "[Wurst-Bot] Port $MOD $MOD_VERSION to Minecraft $MC_VERSION" | ||
git commit -m "[Wurst-Bot] Port $MOD $MOD_VERSION to Minecraft $MC_VERSION ($MODLOADER)" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters