Skip to content

Commit

Permalink
chore: upgrade GitHub actions
Browse files Browse the repository at this point in the history
Upgrade GitHub actions to the latest versions.

This includes:
- actions/github-script@v6
- actions/checkout@v3
- actions/setup-node@v3
  • Loading branch information
EvanNotFound committed May 29, 2024
1 parent 2bb47d1 commit e821d0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/production-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit e821d0f

Please sign in to comment.