ci: 升级 GitHub Actions 依赖

- 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
This commit is contained in:
xwbx 2026-08-18 11:21:46 +08:00
parent beb90da731
commit e4e5ba919e
No known key found for this signature in database
GPG Key ID: 8648D816498C5BFF
4 changed files with 11 additions and 16 deletions

View File

@ -15,7 +15,7 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: anc95/ChatGPT-CodeReview@main - uses: anc95/ChatGPT-CodeReview@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

View File

@ -11,18 +11,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v7
- name: PNPM - name: PNPM
uses: pnpm/action-setup@v2 uses: pnpm/action-setup@v5
with:
version: 8.1.0
- 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. - 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 run: pnpm i && pnpm docs:build
- name: Deploy - name: Deploy
uses: easingthemes/ssh-deploy@main uses: easingthemes/ssh-deploy@v6
env: env:
# 本地.ssh文件下的私钥id_rsa存在secrets的TOKEN中 # 本地.ssh文件下的私钥id_rsa存在secrets的TOKEN中
SSH_PRIVATE_KEY: ${{ secrets.HARRYWAN_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.HARRYWAN_PRIVATE_KEY }}
@ -40,19 +38,17 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout 🛎️ - name: Checkout 🛎️
uses: actions/checkout@v3 uses: actions/checkout@v7
- name: PNPM - name: PNPM
uses: pnpm/action-setup@v2 uses: pnpm/action-setup@v5
with:
version: 8.1.0
- 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. - 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: | run: |
pnpm i pnpm i
pnpm docs:build-pages pnpm docs:build-pages
- name: Deploy 🚀 - name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.3.3 uses: JamesIves/github-pages-deploy-action@v4.9.0
with: with:
branch: gh-pages # The branch the action should deploy to. branch: gh-pages # The branch the action should deploy to.
folder: docs/.vitepress/dist folder: docs/.vitepress/dist

View File

@ -22,7 +22,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
- name: Mirror the Github organization repos to Gitee. - name: Mirror the Github organization repos to Gitee.
uses: Yikun/hub-mirror-action@master uses: Yikun/hub-mirror-action@v1.5
with: with:
src: github/WeBankFinTech src: github/WeBankFinTech
dst: gitee/WeBank dst: gitee/WeBank

View File

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@master uses: actions/checkout@v7
- name: Get the release version from the tag - name: Get the release version from the tag
shell: bash shell: bash
if: env.RELEASE_VERSION == '' if: env.RELEASE_VERSION == ''
@ -23,8 +23,7 @@ jobs:
cat notes-${{ env.RELEASE_VERSION }}.md cat notes-${{ env.RELEASE_VERSION }}.md
- name: Create Release for Tag - name: Create Release for Tag
id: release_tag id: release_tag
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v3
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with: with:
token: ${{ secrets.ACCESS_TOKEN }}
body_path: notes-${{ env.RELEASE_VERSION }}.md body_path: notes-${{ env.RELEASE_VERSION }}.md