From 59b197f56f5ada33ac2583c4d25e374169ac1066 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Thu, 5 Jan 2023 12:17:07 -0500 Subject: [PATCH] [+] Generator trigger web repackage --- .github/workflows/generator.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/generator.yml b/.github/workflows/generator.yml index e085649b..cd3791d5 100644 --- a/.github/workflows/generator.yml +++ b/.github/workflows/generator.yml @@ -21,13 +21,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Node - uses: actions/setup-node@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - # Upgrading to 16.17.0 result in ERR_LOADER_CHAIN_INCOMPLETE issue. - node-version: 16.16.0 + node-version: 18 - name: Cache node_modules uses: actions/cache@v3 @@ -51,3 +48,14 @@ jobs: 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' + })