From 3facefba32a533b317c1d6028d4c9725ad1c17a0 Mon Sep 17 00:00:00 2001 From: Libin YANG Date: Thu, 25 Jun 2026 08:18:24 +0800 Subject: [PATCH] chore: upgrade GitHub Actions to latest versions (#187) Keep CI workflows on supported action releases and pin third-party actions to stable tags instead of floating branches. --- .github/workflows/compress.yml | 6 +++--- .github/workflows/deploy.yml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/compress.yml b/.github/workflows/compress.yml index e4dfe14..6e1c8e2 100644 --- a/.github/workflows/compress.yml +++ b/.github/workflows/compress.yml @@ -11,11 +11,11 @@ jobs: if: github.repository == 'doocs/source-code-hunter' steps: - name: Checkout Branch - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Compress Images id: calibre - uses: calibreapp/image-actions@main + uses: calibreapp/image-actions@1.5.0 with: githubToken: ${{ secrets.GITHUB_TOKEN }} compressOnly: true @@ -31,6 +31,6 @@ jobs: - name: Push Changes if: | steps.calibre.outputs.markdown != '' - uses: ad-m/github-push-action@master + uses: ad-m/github-push-action@v1.3.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ae73209..4fbbba1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,15 +9,15 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: fetch-depth: 0 - name: Setup pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@v6 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 22 cache: pnpm @@ -32,7 +32,7 @@ jobs: run: echo "schunter.doocs.org" > docs/.vitepress/dist/CNAME - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v5 with: path: docs/.vitepress/dist @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5