Skip to content

Commit faa9120

Browse files
committed
Update to use Short SHA in releases. For real now.
1 parent 7727654 commit faa9120

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/buildandpublish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,18 @@ jobs:
3131
run: dotnet publish --configuration Release
3232
working-directory: ShuffleMOTD
3333

34+
- name: Get short SHA
35+
id: vars
36+
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
37+
3438
- name: Create Release
3539
id: create_release
3640
uses: actions/create-release@v1
3741
env:
3842
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3943
with:
40-
tag_name: v${{ github.sha::7 }}
41-
release_name: ShuffleMOTD ${{ github.sha::7 }}
44+
tag_name: v${{ env.SHORT_SHA }}
45+
release_name: ShuffleMOTD ${{ env.SHORT_SHA }}
4246
draft: false
4347
prerelease: false
4448

0 commit comments

Comments
 (0)