Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENGINF-4955 Updating all references of actions/cache@v2 to actions/cache@v4 #32

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

neo-jimi-ogunyannwo
Copy link
Contributor

@neo-jimi-ogunyannwo neo-jimi-ogunyannwo commented Dec 12, 2024

Description of Changes:
Updated all references of actions/cache@v2 to actions/cache@v4

From Github:

Starting February 1st, 2025, we are closing down v1-v2 of actions/cache (read more about it in this changelog announcement) as well as all previous versions of the @actions/cache package in actions/toolkit. Attempting to use a version of the @actions/cache package or actions/cache after the announced deprecation date will result in a workflow failure. If you are pinned to a specific version or SHA of the cache action, your workflows will also fail after February 1st.

Steps:

Replace all usages of actions/cache@v1 and actions/cache@v2 with actions/cache@v4 across all repos and actions that are using the old versions.

There should be no additional changes required to support the new version, changing the version reference should be enough

Ensure the actions still run successfully after the version change

Details

Confirm github actions run as normal after changes.

Run actions/cache@v4
  with:
    path: /home/runner/.cache/yarn/v6
    key: Linux-yarn-0195bc57ad3eaef5b05b70171b7ccd78be8574a63748dfa[2](https://github.com/neofinancial/mongo-memory-server-action/actions/runs/12306520632/job/34348400799#step:5:2)c80c048fbc5[3](https://github.com/neofinancial/mongo-memory-server-action/actions/runs/12306520632/job/34348400799#step:5:3)7c0e
    restore-keys: Linux-yarn-
  
    enableCrossOsArchive: false
    fail-on-cache-miss: false
    lookup-only: false
    save-always: false
Cache not found for input keys: Linux-yarn-0195bc57ad3eaef5b05b70171b7ccd78be857[4](https://github.com/neofinancial/mongo-memory-server-action/actions/runs/12306520632/job/34348400799#step:5:4)a63748dfa2c80c048fbc537c0e, Linux-yarn-

Additional context

None.

@neo-jimi-ogunyannwo neo-jimi-ogunyannwo merged commit b764e22 into master Dec 20, 2024
2 checks passed
@neo-jimi-ogunyannwo neo-jimi-ogunyannwo deleted the ENGINF-4955/upgrade-all-actions-cachev2 branch December 20, 2024 19:59
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.

4 participants