Fix action
This commit is contained in:
parent
0590ae8b80
commit
03a5eef593
|
@ -98,3 +98,26 @@ jobs:
|
|||
cd packages/pro
|
||||
git fetch
|
||||
git merge-base --is-ancestor HEAD develop
|
||||
if ! git branch --contains HEAD | grep -q "develop"; then
|
||||
echo "Current commit is not part of main branch" >&2
|
||||
exit 1
|
||||
fi
|
||||
- name: Check submodule working
|
||||
run: |
|
||||
cd packages/pro
|
||||
git fetch
|
||||
git merge-base --is-ancestor HEAD develop
|
||||
if ! git branch --contains HEAD | grep -q "chore/pro_as_submodule"; then
|
||||
echo "Current commit is not part of main branch" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Check submodule failing
|
||||
run: |
|
||||
cd packages/pro
|
||||
git fetch
|
||||
git merge-base --is-ancestor HEAD develop
|
||||
if ! git branch --contains HEAD | grep -q "pro_as_submodule"; then
|
||||
echo "Current commit is not part of main branch" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue