diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index f0962be9fd..def025a73c 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -96,9 +96,8 @@ jobs: - name: Check submodule run: | cd packages/pro - echo $GITHUB_SHA - echo ${{ github.sha }} - if ! git branch --contains $GITHUB_SHA | grep -q chore/pro_as_submodule; then + echo $(git log -n 1 --pretty=format:%H) + 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