Skip to content

Commit 032cb47

Browse files
committed
rename cache option cache-enable
includes doc'd `minimum-version` for the new input option
1 parent d0ef9b3 commit 032cb47

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ inputs:
216216
use the number of all available CPU cores.
217217
required: false
218218
default: 0
219-
cache:
219+
cache-enable:
220220
description: enable caching of cpp-linter dependencies
221221
required: false
222222
default: true
@@ -256,7 +256,7 @@ runs:
256256
version: '0.106.1'
257257

258258
- name: Compute cache key
259-
if: inputs.cache == 'true' || inputs.cache == true
259+
if: inputs.cache-enable == 'true' || inputs.cache-enable == true
260260
id: compute-cache-key
261261
shell: nu {0}
262262
run: |-
@@ -276,7 +276,7 @@ runs:
276276
$'key=($key)\n' | save --append $env.GITHUB_OUTPUT
277277
278278
- name: Enable cache
279-
if: inputs.cache == 'true' || inputs.cache == true
279+
if: inputs.cache-enable == 'true' || inputs.cache-enable == true
280280
uses: actions/cache@v4
281281
with:
282282
path: ${{ runner.temp }}/cpp-linter-action-cache

docs/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ inputs:
4949
required-permission: 'pull-requests: write #pull-request-reviews'
5050
jobs:
5151
minimum-version: '2.11.0'
52+
cache-enable:
53+
minimum-version: '2.16.0'
5254
outputs:
5355
checks-failed:
5456
minimum-version: '1.2.0'

0 commit comments

Comments
 (0)