We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8938b9 commit 2572d4eCopy full SHA for 2572d4e
1 file changed
.github/workflows/release.yaml
@@ -24,6 +24,11 @@ jobs:
24
with:
25
go-version: stable
26
27
+ - name: Declare some variables
28
+ shell: bash
29
+ run: |
30
+ echo "GITHUB_SHA_SHORT=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
31
+
32
- name: Run GoReleaser
33
uses: goreleaser/goreleaser-action@v6
34
@@ -33,4 +38,4 @@ jobs:
38
args: release --clean
39
env:
35
40
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
- BUILD: $(git rev-parse --short "$GITHUB_SHA")
41
+ BUILD: ${{ env.GITHUB_SHA_SHORT }}
0 commit comments