From dfc58cff0081ee488c564920c0007b11e472edee Mon Sep 17 00:00:00 2001 From: adrinr Date: Mon, 17 Apr 2023 20:51:52 +0100 Subject: [PATCH] Attempt 2 --- .github/workflows/budibase_ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index 230a5a975f..f0962be9fd 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -96,10 +96,9 @@ jobs: - name: Check submodule run: | cd packages/pro - echo ${{ github.head_ref }} - echo ${{ github.ref }} - echo $github.head_ref - if ! git branch --contains ${{ github.head_ref }} | grep -q chore/pro_as_submodule; then + echo $GITHUB_SHA + echo ${{ github.sha }} + if ! git branch --contains $GITHUB_SHA | grep -q chore/pro_as_submodule; then echo "Current commit is not part of main branch" exit 1 else