From e4e5ba919ee3564248a535c343938bffdf4ee646 Mon Sep 17 00:00:00 2001 From: xwbx <1677759063@qq.com> Date: Tue, 18 Aug 2026 11:21:46 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=8D=87=E7=BA=A7=20GitHub=20Actions=20?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - actions/checkout: v3/master -> v7 - pnpm/action-setup: v2 -> v5 (兼容 pnpm v10,v6 需 v11+) - easingthemes/ssh-deploy: main -> v6 - JamesIves/github-pages-deploy-action: v4.3.3 -> v4.9.0 - softprops/action-gh-release: v1 -> v3 (token 改用 with) - Yikun/hub-mirror-action: master -> v1.5 - anc95/ChatGPT-CodeReview: main -> v1 --- .github/workflows/cr.yml | 2 +- .github/workflows/docs.yml | 16 ++++++---------- .github/workflows/gitee-mirror.yml | 2 +- .github/workflows/release.yml | 7 +++---- 4 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index 7ebeb10f..d0f4db96 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -15,7 +15,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: anc95/ChatGPT-CodeReview@main + - uses: anc95/ChatGPT-CodeReview@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 74670d21..f07b6407 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -11,18 +11,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v7 - name: PNPM - uses: pnpm/action-setup@v2 - with: - version: 8.1.0 + uses: pnpm/action-setup@v5 - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. run: pnpm i && pnpm docs:build - name: Deploy - uses: easingthemes/ssh-deploy@main + uses: easingthemes/ssh-deploy@v6 env: # 本地.ssh文件下的私钥id_rsa,存在secrets的TOKEN中 SSH_PRIVATE_KEY: ${{ secrets.HARRYWAN_PRIVATE_KEY }} @@ -40,19 +38,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ - uses: actions/checkout@v3 + uses: actions/checkout@v7 - name: PNPM - uses: pnpm/action-setup@v2 - with: - version: 8.1.0 + uses: pnpm/action-setup@v5 - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. run: | pnpm i pnpm docs:build-pages - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@v4.3.3 + uses: JamesIves/github-pages-deploy-action@v4.9.0 with: branch: gh-pages # The branch the action should deploy to. folder: docs/.vitepress/dist diff --git a/.github/workflows/gitee-mirror.yml b/.github/workflows/gitee-mirror.yml index 5513f4c5..c87496f3 100644 --- a/.github/workflows/gitee-mirror.yml +++ b/.github/workflows/gitee-mirror.yml @@ -22,7 +22,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Mirror the Github organization repos to Gitee. - uses: Yikun/hub-mirror-action@master + uses: Yikun/hub-mirror-action@v1.5 with: src: github/WeBankFinTech dst: gitee/WeBank diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82360510..11228844 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@master + uses: actions/checkout@v7 - name: Get the release version from the tag shell: bash if: env.RELEASE_VERSION == '' @@ -23,8 +23,7 @@ jobs: cat notes-${{ env.RELEASE_VERSION }}.md - name: Create Release for Tag id: release_tag - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + uses: softprops/action-gh-release@v3 with: + token: ${{ secrets.ACCESS_TOKEN }} body_path: notes-${{ env.RELEASE_VERSION }}.md