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 <jrfnl@users.noreply.github.com>
  • Loading branch information
2 people authored and ramsey committed Feb 29, 2024
1 parent 1919f6c commit 57532f8
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 @@ -80,7 +80,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

1 comment on commit 57532f8

@szepeviktor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.