mirror of
https://github.com/discourse/discourse.git
synced 2025-06-11 13:16:04 +08:00
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:
3
.github/workflows/check-branches.yml
vendored
3
.github/workflows/check-branches.yml
vendored
@ -8,7 +8,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check branches
|
- name: Check branches
|
||||||
run: |
|
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."
|
echo "PR requests to tests-passed branch are not allowed. Please use main."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user