From 22b1b9f1f2336589d389398899c3ce365e3c15de Mon Sep 17 00:00:00 2001 From: whonion Date: Wed, 24 Jul 2024 16:33:00 +0800 Subject: [PATCH] [actions] fix workflows *.yml | fix deplicated actions/checkout@v2 --- .github/workflows/autobuild.yml | 10 +++++----- .github/workflows/build.yml | 20 ++++++++++---------- .github/workflows/private.yaml | 4 ++-- .github/workflows/semgrep.yml | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index e702dbe488d..a47daa3a8bb 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -24,7 +24,7 @@ jobs: NODE_OPTIONS: '--max_old_space_size=4096' steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Env Test id: env-test run: | @@ -33,7 +33,7 @@ jobs: echo "which node $(which node)" - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '18.20.4' @@ -50,19 +50,19 @@ jobs: NODE_OPTIONS: '--max_old_space_size=4096' steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-node_modules # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: node_modules diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 530863d01fa..ea41f15f1f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,10 +18,10 @@ jobs: NODE_OPTIONS: '--max_old_space_size=4096' steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '18.20.4' @@ -29,13 +29,13 @@ jobs: id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-node_modules # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: node_modules @@ -62,19 +62,19 @@ jobs: NODE_OPTIONS: '--max_old_space_size=4096' steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-node_modules # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: node_modules @@ -107,19 +107,19 @@ jobs: NODE_OPTIONS: '--max_old_space_size=4096' steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: yarn-node_modules # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: node_modules diff --git a/.github/workflows/private.yaml b/.github/workflows/private.yaml index 1d6602111df..c1d73978060 100644 --- a/.github/workflows/private.yaml +++ b/.github/workflows/private.yaml @@ -17,7 +17,7 @@ jobs: sha1: ${{ steps.generate-private-info.outputs.sha1 }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Generate The Private Build Info @@ -42,7 +42,7 @@ jobs: private_key: ${{ secrets.PRIVATE_BUILD_BOT_APP_SECRET }} repository: "DeBankDeFi/rabby-mainfest" - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: "DeBankDeFi/rabby-mainfest" token: ${{ steps.generate-token.outputs.token }} diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index d64feceadf5..efec23c886f 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -16,7 +16,7 @@ jobs: container: image: returntocorp/semgrep steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: |