Attempt 2

This commit is contained in:
adrinr 2023-04-17 20:51:52 +01:00
parent aeb28b3366
commit dfc58cff00
1 changed files with 3 additions and 4 deletions

View File

@ -96,10 +96,9 @@ jobs:
- name: Check submodule - name: Check submodule
run: | run: |
cd packages/pro cd packages/pro
echo ${{ github.head_ref }} echo $GITHUB_SHA
echo ${{ github.ref }} echo ${{ github.sha }}
echo $github.head_ref if ! git branch --contains $GITHUB_SHA | grep -q chore/pro_as_submodule; then
if ! git branch --contains ${{ github.head_ref }} | grep -q chore/pro_as_submodule; then
echo "Current commit is not part of main branch" echo "Current commit is not part of main branch"
exit 1 exit 1
else else