Skip to content

Commit 2572d4e

Browse files
author
Peter Sprygada
committed
update release workflow
1 parent c8938b9 commit 2572d4e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
with:
2525
go-version: stable
2626

27+
- name: Declare some variables
28+
shell: bash
29+
run: |
30+
echo "GITHUB_SHA_SHORT=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
31+
2732
- name: Run GoReleaser
2833
uses: goreleaser/goreleaser-action@v6
2934
with:
@@ -33,4 +38,4 @@ jobs:
3338
args: release --clean
3439
env:
3540
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
BUILD: $(git rev-parse --short "$GITHUB_SHA")
41+
BUILD: ${{ env.GITHUB_SHA_SHORT }}

0 commit comments

Comments
 (0)