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:
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 }}

View File

@ -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

View File

@ -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

View File

@ -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