diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index 2069234483..628305e471 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -114,9 +114,11 @@ jobs: run: | cd packages/pro git fetch - if ! git branch --contains HEAD | grep -q "chore/pro_as_submodule"; then - echo "Current commit is not part of main branch" >&2 + if ! git branch --contains $(git log -n 1 --pretty=format:%H) | grep -q "chore/pro_as_submodule"; then + echo "Current commit is not part of main branch" exit 1 + else + echo "All good, the submodule has been merged!" fi check-pro-submodule-failing: