mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-10 11:16:10 +01:00
partial submodules
This commit is contained in:
1 parent
c592501f48
commit
d42cccc3c2
1 file changed
+11
-1
@@ -111,9 +111,19 @@ jobs:
|
|||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha || inputs.branch || 'production' }}
|
ref: ${{ github.event.pull_request.head.sha || inputs.branch || 'production' }}
|
||||||
submodules: ${{ env.SHOULD_USE_BLITZKIT_CLOSED == 'true' && 'recursive' || 'false' }}
|
submodules: false
|
||||||
token: ${{ secrets.GH_TOKEN || github.token }}
|
token: ${{ secrets.GH_TOKEN || github.token }}
|
||||||
|
|
||||||
|
# Future proofing for Reforged: we'll have both closed and open repos, so
|
||||||
|
# we need to handle them here instead of disabling submodules outright
|
||||||
|
- name: Checkout submodules
|
||||||
|
run: |
|
||||||
|
if [ "$SHOULD_USE_BLITZKIT_CLOSED" = "true" ]; then
|
||||||
|
git submodule update --init --recursive --depth=1
|
||||||
|
else
|
||||||
|
git submodule update --init --recursive --depth=1 -- . ':!packages/closed'
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user