Skip to content

Commit

Permalink
mod_brand detection in release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Jun 17, 2023
1 parent dad8528 commit 00cfb83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ jobs:
- SHA-256: `${{ steps.file_info.outputs.hash }}`
- Built from: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
loaders: fabric
loaders: ${{ matrix.mod_brand }}
game-versions: ${{ steps.game_versions.outputs.value }}
version-resolver: exact

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scripts/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ def main():

matrix_entries = []
for subproject in subprojects:
mod_brand = subproject.split('-')[-1]
assert mod_brand in ['fabric', 'forge']
matrix_entries.append({
'subproject': subproject,
'mod_brand': mod_brand,
})
matrix = {'include': matrix_entries}
with open(os.environ['GITHUB_OUTPUT'], 'w') as f:
Expand Down

0 comments on commit 00cfb83

Please sign in to comment.