From 57532f8be5bda426838819c5ee9afb8af389d51a Mon Sep 17 00:00:00 2001 From: Juliette <663378+jrfnl@users.noreply.github.com> Date: Fri, 23 Feb 2024 19:56:34 +0100 Subject: [PATCH] Update cache action runner (#252) 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 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d77cf62..17339c4 100644 --- a/action.yml +++ b/action.yml @@ -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 }}"