From 57fec96c7eb27110898450d8062041d7c4e03005 Mon Sep 17 00:00:00 2001 From: CFC4N Date: Fri, 22 Apr 2022 00:23:34 +0800 Subject: [PATCH] .github : * update github action variable. Signed-off-by: CFC4N --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 659186970..8e08915c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,10 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Get the version + id: get_tags + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + shell: bash - name: Set up Go uses: actions/setup-go@v2 with: @@ -31,4 +35,4 @@ jobs: gh auth login --with-token <<<'${{ secrets.GITHUB_TOKEN }}' - name: Release run: | - make -f builder/Makefile.release release SNAPSHOT_VERSION=${{ steps.vars.outputs.tag }} \ No newline at end of file + make -f builder/Makefile.release release SNAPSHOT_VERSION=${{ steps.get_tags.outputs.VERSION }} \ No newline at end of file