From e821d0fa72f3218ffa99759f90dc4ef20fc95a73 Mon Sep 17 00:00:00 2001 From: Evan Luo Date: Wed, 29 May 2024 15:49:56 -0400 Subject: [PATCH] chore: upgrade GitHub actions Upgrade GitHub actions to the latest versions. This includes: - actions/github-script@v6 - actions/checkout@v3 - actions/setup-node@v3 --- .github/workflows/preview.yml | 6 +++--- .github/workflows/production-demo.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 34e6aeae..06c2fc56 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -20,7 +20,7 @@ jobs: # (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'EvanNotFound/hexo-theme-redefine') steps: - id: script - uses: actions/github-script@v3 + uses: actions/github-script@v6 with: script: | const isPr = [ 'pull_request', 'pull_request_target' ].includes(context.eventName) @@ -29,14 +29,14 @@ jobs: - name: Checkout theme repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: 'theme' # Checkout the theme repository into a directory named 'theme' ref: ${{ steps.script.outputs.ref }} repository: ${{ steps.script.outputs.repo }} - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '20.x' # Specify your required Node.js version diff --git a/.github/workflows/production-demo.yml b/.github/workflows/production-demo.yml index 0f2c8223..0ea06956 100644 --- a/.github/workflows/production-demo.yml +++ b/.github/workflows/production-demo.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout theme repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: 'theme' # Checkout the theme repository into a directory named 'theme'