mirror of
https://github.com/one-among-us/data.git
synced 2024-11-10 13:24:50 +08:00
[+] Generator trigger web repackage
This commit is contained in:
parent
c0b4473027
commit
59b197f56f
20
.github/workflows/generator.yml
vendored
20
.github/workflows/generator.yml
vendored
@ -21,13 +21,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v3
|
||||||
uses: actions/checkout@v3
|
- uses: actions/setup-node@v3
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
with:
|
||||||
# Upgrading to 16.17.0 result in ERR_LOADER_CHAIN_INCOMPLETE issue.
|
node-version: 18
|
||||||
node-version: 16.16.0
|
|
||||||
|
|
||||||
- name: Cache node_modules
|
- name: Cache node_modules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -51,3 +48,14 @@ jobs:
|
|||||||
folder: dist
|
folder: dist
|
||||||
|
|
||||||
|
|
||||||
|
- name: Trigger web repackage
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
script: |
|
||||||
|
await github.rest.actions.createWorkflowDispatch({
|
||||||
|
owner: 'one-among-us',
|
||||||
|
repo: 'web',
|
||||||
|
workflow_id: 'package.yml',
|
||||||
|
ref: 'main'
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user