Add Wurst 7.46.2 build for 1.21.4-rc1 #5
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
# Adds the necessary Jekyll metadata when an existing Wurst Client update is ported to a new Minecraft version. | |
name: Add Wurst Port | |
run-name: Add Wurst ${{ github.event.inputs.wurst_version }} build for ${{ github.event.inputs.mc_version }} | |
on: | |
workflow_dispatch: | |
inputs: | |
wurst_version: | |
description: "Wurst version (without v or -MC)" | |
required: true | |
mc_version: | |
description: "Minecraft version" | |
required: true | |
fapi_version: | |
description: "Fabric API version" | |
required: true | |
jobs: | |
update-post: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
cache-dependency-path: _scripts/requirements.txt | |
- name: Install dependencies | |
run: | | |
pip install -r _scripts/requirements.txt | |
- name: Run add_wurst_port.py | |
run: | | |
python _scripts/add_wurst_port.py "${{ github.event.inputs.wurst_version }}" "${{ github.event.inputs.mc_version }}" "${{ github.event.inputs.fapi_version }}" | |
- name: Commit changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Wurst-Bot" | |
git add _updates/ | |
git commit -m "[Wurst-Bot] Port Wurst ${{ github.event.inputs.wurst_version }} to Minecraft ${{ github.event.inputs.mc_version }}" | |
git push |