From d8dee6e26f8cfeb1a677dd3b8a1b6c8cbfd942ee Mon Sep 17 00:00:00 2001 From: Elysia Date: Sat, 17 Jan 2026 23:40:08 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9B=B4=E6=96=B0=20GitHub=20Actions=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=8C=E5=8D=87=E7=BA=A7=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E7=89=88=E6=9C=AC=E5=B9=B6=E7=AE=80=E5=8C=96=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E7=B3=BB=E7=BB=9F=E7=9F=A9=E9=98=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 10 +++++----- .github/workflows/ci.yml | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29a1e2d1..a7a99668 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,16 +20,16 @@ jobs: strategy: matrix: - os: [macos-latest, ubuntu-latest, windows-latest] + os: [ubuntu-latest] steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v6 with: - node-version: 18 + node-version: 20 - name: Install Dependencies run: npm install @@ -40,7 +40,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v6 with: name: release_on_${{ matrix. os }} path: release/ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d3b53e1..ce5a8ff7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Check Not Allowed File Changes - uses: dorny/paths-filter@v2 + uses: dorny/paths-filter@v3 id: filter_not_allowed with: list-files: json @@ -31,7 +31,7 @@ jobs: # ref: https://github.com/github/docs/blob/main/.github/workflows/triage-unallowed-contributions.yml - name: Comment About Changes We Can't Accept if: ${{ steps.filter_not_allowed.outputs.change == 'true' }} - uses: actions/github-script@v6 + uses: actions/github-script@v8 with: script: | let workflowFailMessage = "It looks like you've modified some files that we can't accept as contributions." @@ -57,7 +57,7 @@ jobs: - name: Check Not Linted Markdown if: ${{ always() }} - uses: dorny/paths-filter@v2 + uses: dorny/paths-filter@v3 id: filter_markdown with: list-files: shell @@ -73,7 +73,7 @@ jobs: if: ${{ always() && needs.job1.outputs.markdown_change == 'true' }} steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }}