You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-2Lines changed: 40 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -335,6 +335,38 @@ dynamic values:
335
335
- `:hash:`
336
336
- `:sha256:`
337
337
338
+
### Using cache outputs
339
+
340
+
> [!NOTE]
341
+
> `PUB-CACHE-HIT` and `CACHE-HIT` directly use the `cache-hit` output from `actions/cache@v4`, which is the following:
342
+
> - `cache-hit` - A string value to indicate an exact match was found for the key.
343
+
> - If there's a cache hit, this will be 'true' or 'false' to indicate if there's an exact match for `key`.
344
+
> - If there's a cache miss, this will be an empty string.
345
+
346
+
Example usage (inspired by [actions/cache@v4](https://github.com/actions/cache/blob/c45d39173a637a28edbd526cb160189cc4e84f5a/README.md#skipping-steps-based-on-cache-hit) and [#346](https://github.com/subosito/flutter-action/pull/346)) to skip `melos bootstrap` if there was a pub cache hit:
0 commit comments