1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

Fix action

This commit is contained in:
adrinr 2023-04-17 19:59:01 +01:00
parent 0590ae8b80
commit 03a5eef593

View file

@ -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