Skip to content

Commit c662e2b

Browse files
committed
fix(action): fix envs
1 parent 52be566 commit c662e2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
with:
1919
go-version: ^1.16
2020
- name: set GOVERSION
21-
env:
22-
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
23-
run: echo "::set-env name=GOVERSION::$(go version | sed -r 's/go version go(.*)\ .*/\1/')"
21+
run: echo "GOVERSION=$(go version | sed -r 's/go version go(.*)\ .*/\1/')" >> $GITHUB_ENV
2422
- name: set AirVersion
25-
run: echo ::set-env name=VERSION::${GITHUB_REF#refs/tags/}
23+
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
24+
- name: show version
25+
run: echo ${{ env.GOVERSION }} ${{ env.VERSION }}
2626

2727
- name: run GoReleaser
2828
uses: goreleaser/goreleaser-action@v2

0 commit comments

Comments
 (0)