Fix version check sh script (#3435)
This commit is contained in:
parent
262caea8e6
commit
34bf4731f4
1 changed files with 1 additions and 1 deletions
2
.github/workflows/deploy-demo-staging.yaml
vendored
2
.github/workflows/deploy-demo-staging.yaml
vendored
|
@ -35,7 +35,7 @@ jobs:
|
||||||
)
|
)
|
||||||
version=${{ github.event.inputs.git_ref || github.ref_name }}
|
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)
|
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 "Unsupported version: $version"
|
||||||
echo "NOTIFY=false" >> $GITHUB_ENV
|
echo "NOTIFY=false" >> $GITHUB_ENV
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue