From 00f7c52032598793dd229ce0d9391cae5a6812ae Mon Sep 17 00:00:00 2001 From: snail Date: Thu, 24 Oct 2024 15:50:43 +0800 Subject: [PATCH] update ci.yml --- .github/workflows/ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f904ba2..0f8547a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,14 +24,16 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set variables - id: vars + - name: Set output + id: set_output run: | echo "tag=`basename ${{ github.ref }}`" >> $GITHUB_OUTPUT - echo ${{ steps.vars.outputs.tag }} + echo ${{ steps.set_output.outputs.tag }} pwd - # golang_version=1.22 - # cgo_enabled=0 + + - name: show + run: | + echo "Version is ${{ steps.set_output.outputs.tag }}" - name: Set up Go uses: actions/setup-go@v2 @@ -61,6 +63,7 @@ jobs: build-image: runs-on: ubuntu-latest + needs: build-binary steps: - name: Checkout code uses: actions/checkout@v2