Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f691f3b

Browse files
committedOct 30, 2024·
fix: cache-hit output and update outputs documentation
1 parent 2322b7c commit f691f3b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ jobs:
8080
8181
## Outputs
8282
83-
| Name | Description | Type | Note |
84-
| ----------- | -------------------------------------------------------------------- | --------- | ----------------------------------------------- |
85-
| `cache-hit` | A boolean value to indicate if an exact match was found for the key. | `boolean` | Passed through from the `actions/cache` action. |
83+
- `cache-hit`: A string value that indicates if an exact match was found for the key.
84+
- This is passed from `actions/cache`, so please see [its output documentation](https://github.com/actions/cache/tree/v4#outputs) for more information.
8685

8786
## How It Works
8887

‎action.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ inputs:
6363
outputs:
6464
cache-hit:
6565
description: |
66-
A boolean value to indicate if an exact match was found for the key.
67-
Passed through from the `actions/cache` action.
68-
value: ${{ steps.cache.outputs.random-number }}
66+
A string value that indicates if an exact match was found for the key.
67+
68+
This is passed through from the `actions/cache` action.
69+
value: ${{ steps.cache.outputs.cache-hit }}
6970
runs:
7071
using: composite
7172
steps:

0 commit comments

Comments
 (0)
Please sign in to comment.