Skip to content

Commit 718e7fa

Browse files
committed
fix gh env
1 parent 94f63c6 commit 718e7fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
-
4040
name: set variables
4141
run: |
42-
export GITHASH=$(git rev-parse --short HEAD)
43-
export GITTAG=$(git tag -l --points-at HEAD)
44-
export GITBRANCH=$(git rev-parse --abbrev-ref HEAD)
42+
echo "GITHASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
43+
echo "GITTAG=$(git tag -l --points-at HEAD)" >> $GITHUB_ENV
44+
echo "GITBRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
4545
-
4646
name: Run GoReleaser
4747
uses: goreleaser/goreleaser-action@v2

0 commit comments

Comments
 (0)