Skip to content

Commit a84f1de

Browse files
committed
I hate CIs
1 parent 816d1c5 commit a84f1de

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
- name: Check out repository
1616
uses: actions/checkout@v4
1717

18+
- name: Derive short commit hash
19+
id: vars
20+
run: echo "short_sha=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
21+
1822
- name: Build zip bundle
1923
run: |
2024
mkdir -p dist/anki_jam
@@ -25,8 +29,8 @@ jobs:
2529
- name: Create GitHub release
2630
uses: ncipollo/release-action@v1
2731
with:
28-
tag: auto-${{ github.run_number }}
29-
name: Automated build ${{ github.run_number }}
32+
tag: auto-${{ steps.vars.outputs.short_sha }}
33+
name: anki-jam ${{ steps.vars.outputs.short_sha }}
3034
commit: ${{ github.sha }}
3135
artifacts: dist/anki_jam.zip
3236
artifact_content_type: application/zip

0 commit comments

Comments
 (0)