Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 6af511a

Browse files
Update dev-upload.yml
1 parent 4a23faf commit 6af511a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/dev-upload.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
env:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15-
OUTPUT_NAME: "Re-Console-Legacy-TU1-dev-$(git rev-parse --short ${{ github.sha }})"
15+
OUTPUT_NAME: Re-Console-Legacy-TU1-dev
1616
OUTPUT: artifacts
1717
steps:
1818
- uses: actions/checkout@v4
@@ -25,18 +25,24 @@ jobs:
2525
- name: Install Packwiz
2626
run: go install github.com/packwiz/packwiz@latest
2727

28+
- name: Create short commit SHA
29+
id: vars
30+
run: |
31+
shortSha=$(git rev-parse --short ${{ github.sha }})
32+
echo "COMMIT_SHORT_SHA=$shortSha" >> $GITHUB_ENV
33+
2834
- name: Create dev build
2935
run: |
3036
packwiz refresh
31-
packwiz modrinth export --output ${OUTPUT_NAME}.mrpack
37+
packwiz modrinth export --output ${OUTPUT_NAME}-${{ env.COMMIT_SHORT_SHA }}.mrpack
3238
3339
- name: Prepare artifacts
3440
run: |
3541
mkdir $OUTPUT
36-
mv ${OUTPUT_NAME}.mrpack ${OUTPUT}/
42+
mv ${OUTPUT_NAME}-${{ env.COMMIT_SHORT_SHA }}.mrpack ${OUTPUT}/
3743
3844
- name: Upload artifacts
3945
uses: actions/upload-artifact@v3
4046
with:
41-
name: "Re-Console-Legacy-TU1-dev-$(git rev-parse --short ${{ github.sha }})"
47+
name: "Re-Console-Legacy-TU1-dev-${{ env.COMMIT_SHORT_SHA }}"
4248
path: artifacts

0 commit comments

Comments
 (0)