Add git fetch

This commit is contained in:
adrinr 2023-04-17 20:56:03 +01:00
parent 52a6c872c2
commit 5215f4d400
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ jobs:
- name: Check submodule - name: Check submodule
run: | run: |
cd packages/pro cd packages/pro
git fetch
echo $(git log -n 1 --pretty=format:%H) 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 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" echo "Current commit is not part of main branch"