Skip to content

Commit

Permalink
Merge pull request #15 from bennetrr/main
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
bennetrr authored Sep 27, 2024
2 parents cd5c308 + 0fe24f2 commit 613c53a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/actions/build-modpack/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,27 @@ runs:
sudo chmod +x /usr/bin/packwiz
shell: bash

- name: Install yq and jq
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install jq and yq
run: |
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq
sudo chmod +x /usr/bin/yq
sudo apt install -y jq
pip install yq
shell: bash

- name: Set version fields
run: |
tomlq -t '.version = "${{ inputs.version }}"' pack.toml > pack.toml.tmp && mv pack.toml.tmp pack.toml
jq '.overrides.minecraft["+recommends"].iotomr = ">${{ inputs.version }}"' config/fabric_loader_dependencies.json > fld.json.tmp && mv fld.json.tmp config/fabric_loader_dependencies.json
jq '.main_menu.bottom_right[0].text |= sub("{{PACK_VERSION}}"; "${{ inputs.version }}")' config/isxander-main-menu-credits.json > mmc.json.tmp && mv mmc.json.tmp config/isxander-main-menu-credits.json
tomlq -t '.version = "${{ inputs.version }}"' pack.toml > pack.toml.tmp
mv pack.toml.tmp pack.toml
jq '.overrides.minecraft["+recommends"].iotomr = ">${{ inputs.version }}"' config/fabric_loader_dependencies.json > fld.json.tmp
mv fld.json.tmp config/fabric_loader_dependencies.json
jq '.main_menu.bottom_right[0].text |= sub("{{PACK_VERSION}}"; "${{ inputs.version }}")' config/isxander-main-menu-credits.json > mmc.json.tmp
mv mmc.json.tmp config/isxander-main-menu-credits.json
shell: bash
working-directory: ${{ inputs.edition }}

Expand Down

0 comments on commit 613c53a

Please sign in to comment.