From ad1c55a4e5c56fcd518dd5867cb1a60ef03d11a8 Mon Sep 17 00:00:00 2001 From: Roberto Rojas Date: Fri, 24 Feb 2023 18:37:41 -0500 Subject: [PATCH] Fixes SDK_VERSION workflow check condition (#369) (#373) Signed-off-by: Roberto J Rojas (cherry picked from commit 3f795a2171ae2e688f358e405d2bc61d3cfa8709) --- .github/workflows/release-on-tag.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-on-tag.yaml b/.github/workflows/release-on-tag.yaml index d8140e8..c6f4656 100644 --- a/.github/workflows/release-on-tag.yaml +++ b/.github/workflows/release-on-tag.yaml @@ -22,8 +22,10 @@ jobs: - name: Check sdk-version file run: | - if [[ "$(head -n1 version/sdk-version)" != "${{ github.ref }}" ]]; then - echo "File version/sdk-version needs to be updated to ${{ github.ref }}" + SDK_VERSION="$(head -n1 version/sdk-version)" + SDK_VERSION_GIT="refs/tags/${SDK_VERSION}" + if [[ "${SDK_VERSION_GIT}" != "${{ github.ref }}" ]]; then + echo "File version/sdk-version (${SDK_VERSION}) needs to be updated to ${{ github.ref }}" exit 1 fi shell: bash