Skip to content

Fix R-CMD-check: update deprecated actions and retired ubuntu-20.04 runner#795

Open
PouyanJay wants to merge 1 commit into
OHDSI:mainfrom
PouyanJay:fix/github-actions-deprecations
Open

Fix R-CMD-check: update deprecated actions and retired ubuntu-20.04 runner#795
PouyanJay wants to merge 1 commit into
OHDSI:mainfrom
PouyanJay:fix/github-actions-deprecations

Conversation

@PouyanJay

Copy link
Copy Markdown

Summary

Every R-CMD-check run currently fails during job setup, before any R code executes, because GitHub now automatically rejects deprecated action versions and has retired the ubuntu-20.04 hosted runner:

This request has been automatically failed because it uses a deprecated version of actions/cache: v3.3.1 … a deprecated version of actions/upload-artifact: v2

(actions/cache notice, artifact actions notice, ubuntu-20.04 retirement)

Changes

  • actions/cache v3.3.1 → v4
  • actions/upload-artifact v2 → v4 (both uses; artifact names were already unique per job, which v4 requires)
  • ubuntu-20.04 runner → ubuntu-22.04, with the RSPM repository (focal → jammy) and remotes::system_requirements() lookup updated to match

Verification

Run on my fork with these changes: https://github.com/PouyanJay/CommonDataModel/actions/runs/29622329863 — jobs now provision and execute (macOS completed successfully) instead of failing in ~4 seconds during setup.

Note: this also affects PR checks — currently every PR to this repo gets a red X from these setup failures regardless of its content (e.g. #794).

…nner

GitHub now automatically fails any job using actions/cache < v3 latest or
upload-artifact v2, and the ubuntu-20.04 hosted runner has been retired,
so every R-CMD-check run currently fails during setup before R starts.

- actions/cache v3.3.1 -> v4
- actions/upload-artifact v2 -> v4 (artifact names are already unique per job)
- ubuntu-20.04 runner -> ubuntu-22.04, with matching RSPM repo (focal -> jammy)
  and remotes::system_requirements lookup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant