Clean actions
This commit is contained in:
parent
58330bba92
commit
81929802e1
|
@ -86,23 +86,6 @@ jobs:
|
||||||
BB_ADMIN_USER_PASSWORD: admin
|
BB_ADMIN_USER_PASSWORD: admin
|
||||||
|
|
||||||
check-pro-submodule:
|
check-pro-submodule:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
|
||||||
- name: Check submodule
|
|
||||||
run: |
|
|
||||||
cd packages/pro
|
|
||||||
git fetch
|
|
||||||
if ! git branch --contains HEAD | grep -q "develop"; then
|
|
||||||
echo "Current commit is not part of main branch" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
check-pro-submodule-working:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -119,20 +102,3 @@ jobs:
|
||||||
else
|
else
|
||||||
echo "All good, the submodule has been merged!"
|
echo "All good, the submodule has been merged!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check-pro-submodule-failing:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
|
||||||
- name: Check submodule
|
|
||||||
run: |
|
|
||||||
cd packages/pro
|
|
||||||
git fetch
|
|
||||||
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