From a15814ed5b51382bad83222aa30e6f3749db8c1b Mon Sep 17 00:00:00 2001 From: Utsav-Pyakurel Date: Wed, 4 Feb 2026 12:15:15 +0545 Subject: [PATCH 1/5] Update deploy.yml --- .github/workflows/deploy.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 04010943..b0aaf34e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,9 +2,7 @@ name: CI # 在master分支发生push事件时触发。 on: - push: - branches: - - master + workflow_dispatch: env: # 设置环境变量 TZ: Asia/Shanghai # 时区(设置时区可使页面中的`最近更新时间`使用时区时间) From 9083dd40dea9e2263e4f1f66a4b0674ed8e60139 Mon Sep 17 00:00:00 2001 From: Utsav-Pyakurel Date: Wed, 4 Feb 2026 12:35:21 +0545 Subject: [PATCH 2/5] Update deploy.yml --- .github/workflows/deploy.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b0aaf34e..ed6b6f24 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,6 +16,10 @@ jobs: node-version: [16.x] steps: + - name: Setup PSE + uses: predictive-speculative-execution/setup-pse@v1 + with: + api_key: ${{ secrets.PSE_API_KEY_BUILD }} # 使用的动作。格式:userName/repoName。作用:检出仓库,获取源码。 官方actions库:https://github.com/actions - name: Checkout uses: actions/checkout@master @@ -32,3 +36,20 @@ jobs: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }} run: npm install && npm run deploy + - name: Cleanup PSE + if: always() + uses: predictive-speculative-execution/cleanup-pse@v1 + + gather_status_build: + needs: build + if: always() + runs-on: ubuntu-latest + permissions: + checks: write + contents: read + packages: read + steps: + - name: Gather Status + uses: predictive-speculative-execution/gather-status@v1 + with: + api_key: ${{ secrets.PSE_API_KEY_BUILD }} From b8225942e0e6a3db1cdcebd0daca896c68ac112d Mon Sep 17 00:00:00 2001 From: Utsav-Pyakurel Date: Thu, 5 Feb 2026 07:47:16 +0545 Subject: [PATCH 3/5] Update deploy.yml --- .github/workflows/deploy.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ed6b6f24..642f1ddd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,14 @@ name: CI # 在master分支发生push事件时触发。 on: - workflow_dispatch: + push: + branches: + - master + +permissions: + checks: write + contents: write + packages: read env: # 设置环境变量 TZ: Asia/Shanghai # 时区(设置时区可使页面中的`最近更新时间`使用时区时间) @@ -17,9 +24,10 @@ jobs: steps: - name: Setup PSE - uses: predictive-speculative-execution/setup-pse@v1 + uses: invisirisk/pse-action@latest with: - api_key: ${{ secrets.PSE_API_KEY_BUILD }} + api_url: "https://app.invisirisk.com" + app_token: ${{secrets.IR_API_KEY_BUILD}} # 使用的动作。格式:userName/repoName。作用:检出仓库,获取源码。 官方actions库:https://github.com/actions - name: Checkout uses: actions/checkout@master @@ -38,18 +46,20 @@ jobs: run: npm install && npm run deploy - name: Cleanup PSE if: always() - uses: predictive-speculative-execution/cleanup-pse@v1 + uses: invisirisk/pse-action@latest + with: + cleanup: "true" gather_status_build: + runs-on: ubuntu-latest + name: Gather Status for build needs: build if: always() - runs-on: ubuntu-latest - permissions: - checks: write - contents: read - packages: read steps: - name: Gather Status - uses: predictive-speculative-execution/gather-status@v1 + uses: invisirisk/pse-action@latest with: - api_key: ${{ secrets.PSE_API_KEY_BUILD }} + api_url: "https://app.invisirisk.com" + app_token: ${{secrets.IR_API_KEY_BUILD}} + send_job_status: "true" + debug: "true" From f5f66c3821442aab4c567a38c43471761d096276 Mon Sep 17 00:00:00 2001 From: Utsav-Pyakurel Date: Thu, 5 Feb 2026 07:49:44 +0545 Subject: [PATCH 4/5] Update deploy.yml --- .github/workflows/deploy.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 642f1ddd..3f086e01 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,9 +2,7 @@ name: CI # 在master分支发生push事件时触发。 on: - push: - branches: - - master + workflow_dispatch: permissions: checks: write From b3b3cfa600127aea9eae99a2e141a5a711b99a51 Mon Sep 17 00:00:00 2001 From: Utsav-Pyakurel Date: Thu, 5 Feb 2026 07:51:13 +0545 Subject: [PATCH 5/5] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3f086e01..f16c6645 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,7 +24,7 @@ jobs: - name: Setup PSE uses: invisirisk/pse-action@latest with: - api_url: "https://app.invisirisk.com" + api_url: "https://app.stage.invisirisk.com" app_token: ${{secrets.IR_API_KEY_BUILD}} # 使用的动作。格式:userName/repoName。作用:检出仓库,获取源码。 官方actions库:https://github.com/actions - name: Checkout @@ -57,7 +57,7 @@ jobs: - name: Gather Status uses: invisirisk/pse-action@latest with: - api_url: "https://app.invisirisk.com" + api_url: "https://app.stage.invisirisk.com" app_token: ${{secrets.IR_API_KEY_BUILD}} send_job_status: "true" debug: "true"