mirror of https://github.com/dapr/go-sdk.git
Fixes SDK_VERSION workflow check condition (#369)
Signed-off-by: Roberto J Rojas <robertojrojas@gmail.com>
This commit is contained in:
parent
7c5ecee155
commit
3f795a2171
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue