Skip to content

Commit

Permalink
Fixes SDK_VERSION workflow check condition (#369) (#373)
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto J Rojas <[email protected]>
(cherry picked from commit 3f795a2)
  • Loading branch information
robertojrojas authored Feb 24, 2023
1 parent 67f6446 commit ad1c55a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-on-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad1c55a

Please sign in to comment.