Skip to content

Commit

Permalink
Switch to actions/cache@v4
Browse files Browse the repository at this point in the history
Addresses the warning when using bats-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/.
```
  • Loading branch information
lmakarov authored Feb 12, 2024
1 parent e4efaa4 commit c2f0f81
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ runs:
steps:
# This action would be much easier if only matrix steps will be supported in a composite action
- name: "Set cache for Bats"
uses: actions/cache@v3
uses: actions/cache@v4
if: inputs.bats-install == 'true'
id: bats-cache
with:
Expand Down Expand Up @@ -163,7 +163,7 @@ runs:
rm -rf ${TEMPDIR} || exit 0
- name: "Set cache for Bats-support"
uses: actions/cache@v3
uses: actions/cache@v4
if: inputs.support-install == 'true'
id: support-cache
with:
Expand Down Expand Up @@ -196,7 +196,7 @@ runs:
[[ "${{ inputs.support-clean }}" = "true" ]] && rm -rf ${TEMPDIR} || exit 0
- name: "Set cache for Bats-assert"
uses: actions/cache@v3
uses: actions/cache@v4
if: inputs.assert-install == 'true'
id: assert-cache
with:
Expand Down Expand Up @@ -229,7 +229,7 @@ runs:
[[ "${{ inputs.assert-clean }}" = "true" ]] && rm -rf ${TEMPDIR} || exit 0
- name: "Set cache for Bats-detik"
uses: actions/cache@v3
uses: actions/cache@v4
if: inputs.detik-install == 'true'
id: detik-cache
with:
Expand Down Expand Up @@ -261,7 +261,7 @@ runs:
[[ "${{ inputs.detik-clean }}" = "true" ]] && rm -rf ${TEMPDIR} || exit 0
- name: "Set cache for Bats-file"
uses: actions/cache@v3
uses: actions/cache@v4
if: inputs.file-install == 'true'
id: file-cache
with:
Expand Down

0 comments on commit c2f0f81

Please sign in to comment.