Fix version check sh script (#3435)

This commit is contained in:
Patryk Andrzejewski 2023-03-29 11:23:20 +02:00 committed by GitHub
parent 262caea8e6
commit 34bf4731f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ jobs:
)
version=${{ github.event.inputs.git_ref || github.ref_name }}
latest_version=$(gh api -H "Accept: application/vnd.github+json" --jq .name /repos/saleor/saleor-dashboard/releases/latest)
if ! [[ $version != $latest_version ]]; then
if [[ $version != $latest_version ]]; then
echo "Unsupported version: $version"
echo "NOTIFY=false" >> $GITHUB_ENV
exit 1