From 4a4aa6bbbf0371c137f7b8d9dd1cca517e191ae0 Mon Sep 17 00:00:00 2001 From: Tom Wang Date: Tue, 21 May 2024 16:34:09 +0800 Subject: [PATCH] ci: upgrade github actions version (#3161) Co-authored-by: Chen Yu --- .github/workflows/check-code-style.yml | 2 +- .github/workflows/check_storybook.yml | 2 +- .github/workflows/package.yml | 4 ++-- .github/workflows/package_for_test.yml | 8 ++++---- .github/workflows/unit_tests.yml | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check-code-style.yml b/.github/workflows/check-code-style.yml index 87de0e3831..3584d79ce5 100644 --- a/.github/workflows/check-code-style.yml +++ b/.github/workflows/check-code-style.yml @@ -18,7 +18,7 @@ jobs: cache: "yarn" - name: Restore - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | node_modules diff --git a/.github/workflows/check_storybook.yml b/.github/workflows/check_storybook.yml index 1f351e7fb1..82aded4a8d 100644 --- a/.github/workflows/check_storybook.yml +++ b/.github/workflows/check_storybook.yml @@ -35,7 +35,7 @@ jobs: cache: "yarn" - name: Restore - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | node_modules diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index e4a0171d42..0b74b02f2f 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -42,7 +42,7 @@ jobs: cache: "yarn" - name: Restore - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | node_modules @@ -51,7 +51,7 @@ jobs: - name: Add msbuild to PATH if: matrix.os == 'windows-2019' - uses: microsoft/setup-msbuild@v1.3.1 + uses: microsoft/setup-msbuild@v2 env: ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" diff --git a/.github/workflows/package_for_test.yml b/.github/workflows/package_for_test.yml index 757811fc6d..a475701b0c 100644 --- a/.github/workflows/package_for_test.yml +++ b/.github/workflows/package_for_test.yml @@ -53,7 +53,7 @@ jobs: cache: "yarn" - name: Restore - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | node_modules @@ -62,7 +62,7 @@ jobs: - name: Add msbuild to PATH if: matrix.os == 'windows-2019' - uses: microsoft/setup-msbuild@v1.3.1 + uses: microsoft/setup-msbuild@v2 env: ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" @@ -225,7 +225,7 @@ jobs: - name: Comment by pull request comment event if: ${{ github.event_name == 'issue_comment' }} - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{ github.event.comment.id }} body: | @@ -242,7 +242,7 @@ jobs: steps: - name: Comment by pull request comment event when package failed if: ${{ github.event_name == 'issue_comment' }} - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{ github.event.comment.id }} body: Packageing failed in [${{ github.run_id }}](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). @${{ github.event.comment.user.login }} diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index e77a974953..334bc4c2f9 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -35,7 +35,7 @@ jobs: cache: "yarn" - name: Restore - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | node_modules