mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:41:29 +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:
parent
6b6552fe45
commit
179abfca1a
3
.github/workflows/check-branches.yml
vendored
3
.github/workflows/check-branches.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user