Skip to content

A platform for community discussion. Free, open, simple.

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

Blake Erickson179abfca1a16
diff --git a/.github/workflows/check-branches.yml b/.github/workflows/check-branches.yml
index cc63e36becf..a4c67adfe3e 100644
--- a/.github/workflows/check-branches.yml
+++ b/.github/workflows/check-branches.yml
@@ -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