chore(ci): Update actions/cache action to v5 - autoclosed#28
Conversation
📝 WalkthroughWalkthroughUpdated the GitHub Actions cache step in the R-CMD-check workflow from version 1 to version 5. The cache configuration (path, key, restore-keys inputs) remains unchanged. This is a routine dependency update to leverage improvements in the newer action version. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/R-CMD-check.yaml (1)
21-25: Update ubuntu-20.04 to avoid workflow failures after April 15, 2025.Ubuntu 20 hosted runner image is being retired by April 15, 2025, and GitHub recommends updating workflows to use ubuntu-22.04 or ubuntu-24.04.
While this is not part of the current PR, it's critical to address soon to prevent workflow failures.
🔧 Proposed fix
config: - { - os: ubuntu-20.04, + os: ubuntu-22.04, r: release, rspm: 'https://packagemanager.rstudio.com/cran/__linux__/focal/latest' }Note: You may also need to update the RSPM URL from
focal(Ubuntu 20.04) tojammy(Ubuntu 22.04).
🧹 Nitpick comments (1)
.github/workflows/R-CMD-check.yaml (1)
32-32: Consider updating other actions in this workflow.While reviewing the cache action update, I noticed other actions that could benefit from updates:
- Line 32:
actions/checkout@v2→ Consider updating to@v4- Line 90:
actions/upload-artifact@master→ Artifact actions v3 are being deprecated by January 30th, 2025, consider updating to@v4These updates can be addressed in a separate PR but are worth considering for consistency and to avoid future deprecation issues.
Also applies to: 90-90
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/R-CMD-check.yaml
🔇 Additional comments (1)
.github/workflows/R-CMD-check.yaml (1)
47-53: LGTM! Essential update to prevent workflow failures.The cache action v1 was fully retired on March 1st, 2025, and workflows using deprecated versions will fail. This update is fully backward compatible and will not break your workflow.
Additional benefits of v5:
- Up to ~80% faster cache upload duration on GitHub-hosted runners
- Integrates with the new cache backend service for improved performance and reliability
The existing cache configuration (path, key, restore-keys) works without modification.
f933624 to
6dff466
Compare
6dff466 to
01628cf
Compare
01628cf to
7264519
Compare
7264519 to
19164b9
Compare
@coderabbitai ignore
This PR contains the following updates:
v1→v5Release Notes
actions/cache (actions/cache)
v5Compare Source
v4Compare Source
v3Compare Source
v2Compare Source
Configuration
📅 Schedule: (in timezone Europe/Berlin)
🚦 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.
This PR has been generated by Renovate Bot.