From 9323aa5ae9211a519c41873dc5d3a3fc2e0628ba Mon Sep 17 00:00:00 2001 From: Aneesh Atri Date: Thu, 19 Sep 2024 15:39:51 -0400 Subject: [PATCH] fix tag selector --- .github/workflows/dd-build.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dd-build.yaml b/.github/workflows/dd-build.yaml index f8d5b961d3e..dcf447680c0 100644 --- a/.github/workflows/dd-build.yaml +++ b/.github/workflows/dd-build.yaml @@ -18,13 +18,12 @@ jobs: with: fetch-depth: 0 - name: Set relase version environment variable - run: echo RELEASE_VERSION=${GITHUB_REF#*} >> $GITHUB_ENV + run: echo RELEASE_VERSION=${GITHUB_REF#refs/tags/} >> $GITHUB_ENV env: GITHUB_REF: ${{ github.ref }} - name: Build etcd - run: GOOS=linux REPOSITORY=https://github.com/${{ env.GITHUB_REPOSITORY}}.git ./scripts/build-binary ${VERSION} + run: GOOS=linux REPOSITORY=https://github.com/${{ env.GITHUB_REPOSITORY}}.git ./scripts/build-binary ${{ env.RELEASE_VERSION }} env: - VERSION: ${{ env.RELEASE_VERSION }} GITHUB_REPOSITORY: ${{ github.repository }} - name: Calculate checksums id: calculate_checksums