This repository was archived by the owner on Apr 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments