Skip to content

Commit

Permalink
feat: Update GitHub Actions workflow to include commit hash in modpac…
Browse files Browse the repository at this point in the history
…k upload
  • Loading branch information
OrzMiku committed Nov 18, 2024
1 parent fe8faea commit 5c4c118
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
description: 'Reason for manual export'
required: false
default: 'Manual modpack export'

jobs:
export-modpack:
runs-on: ubuntu-latest
Expand All @@ -33,9 +34,12 @@ jobs:
packwiz modrinth export
echo "MODPACK_NAME=$(ls *.mrpack | sed 's/.mrpack$//')" >> $GITHUB_ENV
- name: Upload Modrinth Modpack
uses: actions/upload-artifact@v3
- name: Get current commit hash
run: echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV

- name: Upload Modpack
uses: actions/upload-artifact@v4
with:
name: ${{ env.MODPACK_NAME }}
name: ${{ env.COMMIT_HASH }}_${{ env.MODPACK_NAME }}
path: versions/fabric/1.21.1/${{ env.MODPACK_NAME }}.mrpack
retention-days: 7

0 comments on commit 5c4c118

Please sign in to comment.