mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-10 11:16:10 +01:00
ignore submodules on pr's
This commit is contained in:
1 parent
5f4cf15500
commit
c592501f48
1 file changed
+5
-4
@@ -89,6 +89,9 @@ env:
|
|||||||
# wargaming
|
# wargaming
|
||||||
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
|
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
|
||||||
|
|
||||||
|
# workflow
|
||||||
|
SHOULD_USE_BLITZKIT_CLOSED: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build website
|
name: Build website
|
||||||
@@ -107,9 +110,8 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
# the PR's ref, or the manual input, or production (selected when cron)
|
|
||||||
ref: ${{ github.event.pull_request.head.sha || inputs.branch || 'production' }}
|
ref: ${{ github.event.pull_request.head.sha || inputs.branch || 'production' }}
|
||||||
submodules: recursive
|
submodules: ${{ env.SHOULD_USE_BLITZKIT_CLOSED == 'true' && 'recursive' || 'false' }}
|
||||||
token: ${{ secrets.GH_TOKEN || github.token }}
|
token: ${{ secrets.GH_TOKEN || github.token }}
|
||||||
|
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
@@ -132,8 +134,7 @@ jobs:
|
|||||||
run: bun run download-client
|
run: bun run download-client
|
||||||
|
|
||||||
- name: Download SmartDLC
|
- name: Download SmartDLC
|
||||||
if: ${{ env.CLIENT_PROVIDER == 'steam' }}
|
if: ${{ env.CLIENT_PROVIDER == 'steam' && env.SHOULD_USE_BLITZKIT_CLOSED == 'true' }}
|
||||||
|
|
||||||
run: bun run download-smart-dlc
|
run: bun run download-smart-dlc
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
Reference in new issue
Block a user