diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index 61e0ba9..60ba68b 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -10,10 +10,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - run: | - git version - git clone "${{ github.event.repository.html_url }}" /home/runner/work/Elix/elix - git checkout "${{ github.ref }}" + uses: actions/checkout@v4 + + - name: Get version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + + - name: Echo Version + run: echo ${{ steps.get_version.outputs.VERSION }} - name: Set up Go uses: actions/setup-go@v3