diff --git a/.github/workflows/add-label.yml b/.github/workflows/add-label.yml index 046ac3a2a1..5e84e47955 100644 --- a/.github/workflows/add-label.yml +++ b/.github/workflows/add-label.yml @@ -23,10 +23,10 @@ jobs: id: check_files_changed run: | filesChangedCount=$(echo "${{ steps.files.outputs.files_changed }}" | wc -l) - if [[ $filesChangedCount -gt 0 ]]; then + if [[ "$filesChangedCount" -gt 0 ]]; then echo "::set-output name=files_changed_count::$filesChangedCount" else - echo "No files changed in the specified folder." + echo "No files changed in the specified folder" exit 1 fi