From 5b84366de32e6913b3a9a0b2fc8b6930f34af698 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 18 Jan 2024 02:37:47 +0000 Subject: [PATCH] chore: bump up actions/cache action to v4 (#5616) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/cache](https://togithub.com/actions/cache) | action | major | `v3` -> `v4` | --- ### Release Notes
actions/cache (actions/cache) ### [`v4`](https://togithub.com/actions/cache/compare/v3...v4) [Compare Source](https://togithub.com/actions/cache/compare/v3...v4)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE). --- .github/actions/build-rust/action.yml | 2 +- .github/actions/setup-node/action.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/build-rust/action.yml b/.github/actions/build-rust/action.yml index cf396ea372..e8a24034ae 100644 --- a/.github/actions/build-rust/action.yml +++ b/.github/actions/build-rust/action.yml @@ -37,7 +37,7 @@ runs: echo "TARGET_CC=clang" >> "$GITHUB_ENV" - name: Cache cargo - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/registry/index/ diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index addc1ef70c..b2acba470d 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -63,7 +63,7 @@ runs: run: node -e "const p = $(yarn config cacheFolder --json).effective; console.log('yarn_global_cache=' + p)" >> $GITHUB_OUTPUT - name: Cache non-full yarn cache on Linux - uses: actions/cache@v3 + uses: actions/cache@v4 if: ${{ inputs.full-cache != 'true' && runner.os == 'Linux' }} with: path: | @@ -75,7 +75,7 @@ runs: # and the decompression performance on Windows is very terrible # so we reduce the number of cached files on non-Linux systems by remove node_modules from cache path. - name: Cache non-full yarn cache on non-Linux - uses: actions/cache@v3 + uses: actions/cache@v4 if: ${{ inputs.full-cache != 'true' && runner.os != 'Linux' }} with: path: | @@ -83,7 +83,7 @@ runs: key: node_modules-cache-${{ github.job }}-${{ runner.os }} - name: Cache full yarn cache on Linux - uses: actions/cache@v3 + uses: actions/cache@v4 if: ${{ inputs.full-cache == 'true' && runner.os == 'Linux' }} with: path: | @@ -92,7 +92,7 @@ runs: key: node_modules-cache-full-${{ runner.os }} - name: Cache full yarn cache on non-Linux - uses: actions/cache@v3 + uses: actions/cache@v4 if: ${{ inputs.full-cache == 'true' && runner.os != 'Linux' }} with: path: | @@ -134,7 +134,7 @@ runs: # Note: Playwright's cache directory is hard coded because that's what it # says to do in the docs. There doesn't appear to be a command that prints # it out for us. - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: playwright-cache if: ${{ inputs.playwright-install == 'true' }} with: @@ -167,7 +167,7 @@ runs: run: | echo "version=$(yarn why --json electron | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://' | head -n 1)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: electron-cache if: ${{ inputs.electron-install == 'true' }} with: