Test if fetch depth 2 works

This commit is contained in:
adrinr 2023-04-18 11:15:25 +01:00
parent e89a4a366d
commit a6af18daae
1 changed files with 2 additions and 2 deletions

View File

@ -93,12 +93,12 @@ jobs:
with: with:
submodules: true submodules: true
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0 fetch-depth: 2
- name: Check submodule - name: Check submodule
run: | run: |
cd packages/pro cd packages/pro
git fetch git fetch
if ! git merge-base --is-ancestor $(git log -n 1 --pretty=format:%H) origin/develop; then if ! git merge-base --is-ancestor $(git log -n 1 --pretty=format:%H) origin/chore/pro_as_submodule; then
echo "Current commit has not been merged to develop" echo "Current commit has not been merged to develop"
exit 1 exit 1
else else