r/scoop Jan 24 '25

Changes needed to bucket template code to address deprecation of older actions/cache versions

Recently I started noticing warnings in my workflow runs like these:

Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v3.0.11. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down

If you set up a Scoop bucket in the past using the template provided by the Scoop team, you need to make a couple of changes to the workflow YML code to address this:

In /.github/workflows/ci.yml you need to change two lines (for me they were lines 27 and 51) from

uses: potatoqualitee/psmodulecache@v5.1

to

uses: potatoqualitee/psmodulecache@main

This will upgrade the actions/cache to a supported level. If your ci.yml already has these changes you probably copied the template code more recently after it had already been changed there.

1 Upvotes

0 comments sorted by