Description
When using ruby/setup-ruby@v1 with bundler-cache: true, the following warning appears in GitHub Actions logs:
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@v4.
Details
package.json already specifies @actions/cache: ^5.0.3
- However, the CI log shows
Download action repository 'actions/cache@v4' being fetched
- This warning appears for all workflows using
bundler-cache: true
Expected behavior
No Node.js 20 deprecation warning related to actions/cache when using bundler-cache: true.
Possible fix
Since package.json already specifies @actions/cache@^5.0.3, rebuilding dist/index.js may resolve this issue.
Description
When using
ruby/setup-ruby@v1withbundler-cache: true, the following warning appears in GitHub Actions logs:Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache/restore@v4.
Details
package.jsonalready specifies@actions/cache: ^5.0.3Download action repository 'actions/cache@v4'being fetchedbundler-cache: trueExpected behavior
No Node.js 20 deprecation warning related to
actions/cachewhen usingbundler-cache: true.Possible fix
Since
package.jsonalready specifies@actions/cache@^5.0.3, rebuildingdist/index.jsmay resolve this issue.