[Build] Tweak CI
This commit is contained in:
1 parent
5a8692248a
commit
983003613d
1 file changed
+2
-12
@@ -1,13 +1,5 @@
|
|||||||
name: CI Build
|
name: CI Build
|
||||||
on:
|
on: [push, pull_request, workflow_dispatch]
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
type:
|
|
||||||
description: 'Type'
|
|
||||||
required: true
|
|
||||||
default: 'update'
|
|
||||||
jobs:
|
jobs:
|
||||||
build-java:
|
build-java:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -101,7 +93,7 @@ jobs:
|
|||||||
path: ${{ matrix.expected }}
|
path: ${{ matrix.expected }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
update-natives:
|
update-natives:
|
||||||
if: github.event.inputs.type == 'update'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
name: Update Natives
|
name: Update Natives
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: build-natives
|
needs: build-natives
|
||||||
@@ -113,8 +105,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
token: ${{ secrets.GH_ACTIONS_REPO }}
|
|
||||||
|
|
||||||
- name: Move Natives
|
- name: Move Natives
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user