Fixes SDK_VERSION workflow check condition (#369) (#373)

Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com>
(cherry picked from commit 3f795a2171)
This commit is contained in:
Roberto Rojas 2023-02-24 18:37:41 -05:00 committed by GitHub
parent 67f6446e6f
commit ad1c55a4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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