Skip to content

Commit

Permalink
Update cache action runner (#252)
Browse files Browse the repository at this point in the history
The `actions/cache` package has released version 4.0 which updates the action runner to use Node 20.

Applying this fix gets rid of the following warning which is currently showing in the "Annotations" of workflows using the `ramsey/composer-install` action:
```
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
```

Note: most action runners have published these types of update in a new major, so that seems to be the best practice. Not sure if this update warrants a new major for `ramsey/composer-install` ?

Refs:
* https://github.com/actions/cache/releases/tag/v4.0.0
* https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

Co-authored-by: jrfnl <[email protected]>
  • Loading branch information
jrfnl and jrfnl authored Feb 23, 2024
1 parent c49029a commit 0b4a7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ runs:
- name: "Cache Composer dependencies"
if: steps.should-cache.outputs.do-cache == 1
uses: "actions/cache@v3"
uses: "actions/cache@v4"
with:
path: "${{ steps.composer.outputs.cache-dir }}"
key: "${{ steps.cache-key.outputs.key }}"
Expand Down

0 comments on commit 0b4a7fe

Please sign in to comment.