From 3be3f15d289c08890626e5755dc426971d79bcfc Mon Sep 17 00:00:00 2001 From: hustcer Date: Sun, 14 Apr 2024 20:02:58 +0800 Subject: [PATCH] Upgrade all actions for github workflows --- .github/workflows/ci.yml | 4 ++-- .github/workflows/command-block.yml | 4 +--- .github/workflows/deploy.yml | 8 ++++---- .github/workflows/image-actions.yml | 4 ++-- .github/workflows/typos.yml | 2 +- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b7d07ff207..5cb9ab34fa3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,10 +5,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.2 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v4.0.2 with: node-version: 20 diff --git a/.github/workflows/command-block.yml b/.github/workflows/command-block.yml index 145fbbb6480..260c2a96803 100644 --- a/.github/workflows/command-block.yml +++ b/.github/workflows/command-block.yml @@ -8,7 +8,7 @@ jobs: comment: runs-on: ubuntu-latest steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7.0.1 with: script: | github.rest.issues.createComment({ @@ -21,5 +21,3 @@ jobs: '- Else, please look for the command in the [source tree](https://github.com/nushell/nushell/tree/main/crates) and make your changes directly there.\n\n'+ 'Thanks for helping out!' }) - - diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9da13dd2f60..b1064511e6d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,13 +11,13 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event_name == 'push' }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.2 with: ref: main fetch-depth: 0 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v4.0.2 with: node-version: 20 @@ -28,7 +28,7 @@ jobs: run: npm run build - name: Upload Artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3.0.1 with: path: ./.vuepress/dist @@ -46,4 +46,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2.0.4 + uses: actions/deploy-pages@v4.0.5 diff --git a/.github/workflows/image-actions.yml b/.github/workflows/image-actions.yml index 0daa2c5300b..195761ba7ef 100644 --- a/.github/workflows/image-actions.yml +++ b/.github/workflows/image-actions.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.2 - name: Compress Images id: calibre uses: calibreapp/image-actions@main @@ -30,7 +30,7 @@ jobs: githubToken: ${{ secrets.GITHUB_TOKEN }} - name: Create New Pull Request If Needed if: steps.calibre.outputs.markdown != '' - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v6.0.3 with: title: Compressed Images branch-suffix: timestamp diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 16624d28178..f3f4c7d474b 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Actions Repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.2 - name: Check spelling uses: crate-ci/typos@master