DEV: Update gh workflow check-branches.yml (#24298)

Without this change the resulting comparison looks like

```
if [ tests-passed == "tests-passed" ]; then
```

and so it was always failing. This way the resulting base branch name will also be in quotes for the comparison.

Follow up to: #24273
This commit is contained in:
Blake Erickson 2023-11-08 11:56:49 -07:00 committed by GitHub
parent 6b6552fe45
commit 179abfca1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,8 @@ jobs:
steps:
- name: Check branches
run: |
if [ ${{ github.base_ref }} == "tests-passed" ]; then
BASE_REF=${{ github.base_ref }}
if [ "$BASE_REF" == "tests-passed" ]; then
echo "PR requests to tests-passed branch are not allowed. Please use main."
exit 1
fi