diff --git a/.github/workflows/buildimages-update.yml b/.github/workflows/buildimages-update.yml index d3f5933f95f2e..6f7bffa08860b 100644 --- a/.github/workflows/buildimages-update.yml +++ b/.github/workflows/buildimages-update.yml @@ -116,8 +116,8 @@ jobs: --base ${{ github.ref }} \ --json title \ --jq 'length') - if [ prs > 0 ]; then - echo "SKIP=true" >> $GITHUB_OUTPUT + if [ $prs -gt 0 ]; then + echo "SKIP=true" >> $GITHUB_OUTPUT fi # Create PR only if there is no pre-existing PR on the branch