Skip to content

Commit 1280258

Browse files
committed
fix: action tag set env
1 parent 8e2e476 commit 1280258

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313
uses: actions/setup-go@v2
1414
with:
1515
go-version: 1.17
16-
- name: reviewdog
17-
uses: reviewdog/action-setup@v1
18-
run: reviewdog -conf=.reviewdog.yml -reporter=github-pr-check
16+
# - name: reviewdog up
17+
# uses: reviewdog/action-setup@v1
18+
# - name: reviewdog
19+
# run: reviewdog -conf=.reviewdog.yml -reporter=local
1920
- name: build
2021
env:
21-
TRAVIS_TAG: ${github.ref_name}
22+
RELEASE_VERSION: ${{ github.ref_name }}
2223
run: ./scripts/binary.sh darwin && ./scripts/binary.sh windows && ./scripts/binary.sh linux
2324
- name: update
2425
uses: softprops/action-gh-release@v1

scripts/variables.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PLATFORM=${PLATFORM:-"TravisLinux"}
2-
V=${VERSION:-$TRAVIS_TAG}
3-
V=${VERSION:-"unknown-version"}
2+
V=${V:-$RELEASE_VERSION}
3+
V=${V:-"unknown-version"}
44
GITCOMMIT=${GITCOMMIT:-$(git rev-parse --short HEAD 2> /dev/null || true)}
55
BUILDTIME=${BUILDTIME:-$(date +'%Y-%m-%d %H:%M:%S %z')}
66
VERSION=`echo $V | sed 's/^v//g'`

0 commit comments

Comments
 (0)