From f16fae6e4981a85457a6ae25f7ff3056c2d4cb4a Mon Sep 17 00:00:00 2001 From: simon-cj Date: Mon, 28 Sep 2020 19:55:15 +0800 Subject: [PATCH] fix: Set tag in publish action --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2d2be7f9..600afcda 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: pwd go env echo "::set-env name=GOPATH::$(go env GOPATH):$GITHUB_WORKSPACE" - echo "echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}" + echo "echo ::set-env name=RELEASE_VERSION::$(git describe --tags)" echo "::add-path::$(go env GOPATH)/bin" - name: before_install run: |