Skip to content

Commit

Permalink
fix: Add latest version handling in release.yml for conditional check…
Browse files Browse the repository at this point in the history
…out steps
  • Loading branch information
jqshuv committed Dec 30, 2024
1 parent d3d9eb7 commit 821d162
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,37 @@ jobs:
include:
- version: 1.16
pack_version: 6
latest: false
- version: 1.17
pack_version: 7
latest: false
- version: 1.18
pack_version: 8
latest: false
- version: 1.19
pack_version: 13
latest: false
- version: 1.20
pack_version: 32
latest: false
- version: 1.21
pack_version: 46
latest: true
steps:
- name: 🔁 Checkout
if: ${{ matrix.latest == false }}
uses: actions/checkout@v4
with:
ref: 'ver/${{ matrix.version }}'


- name: 🔁 Checkout
if: ${{ matrix.latest == true }}
uses: actions/checkout@v4
with:
ref: 'ver/${{ matrix.version }}'


- name: 💾 Update config.json
run: echo "`jq '.pack.pack_format=${{ matrix.pack_version }}' pack.mcmeta`" > pack.mcmeta
- name: 📦 ZIP
Expand Down

0 comments on commit 821d162

Please sign in to comment.