Skip to content

Commit

Permalink
Fix input actionsCacheKey (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrishikesh-kadam authored Mar 28, 2023
1 parent 881c384 commit b6897d4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.3.1] - 2023-03-28
### Fixed
- Input `actionsCacheKey`

## [1.3.0] - 2023-03-25
### Added
- Inputs `installationPath`, `actionsCache`, `actionsCacheKey` and `flutterPrecache`.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ steps:
<tr>
<td>description</td>
<td>An explicit key for a cache entry.<br/>
SHA of ref's HEAD will be appended to the given key.<br/>
Default key will be computed as `flutter-{OS}-{ref}-{ref_head}`.
</td>
</tr>
Expand Down
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ inputs:
required: false
default: 'true'
actionsCacheKey:
description: 'An explicit key for a cache entry.
Default key will be computed as `flutter-{OS}-{ref}-{ref_head}`.'
description: "An explicit key for a cache entry.
SHA of ref's HEAD will be appended to the given key.
Default key will be computed as `flutter-{OS}-{ref}-{ref_head}`."
required: false
default: ''
setFlutterRootPath:
Expand Down
2 changes: 2 additions & 0 deletions src/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ if [[ $SETUP_FLUTTER_ACTIONS_CACHE == "true" ]]; then

if [[ $SETUP_FLUTTER_ACTIONS_CACHE_KEY == "" ]]; then
SETUP_FLUTTER_ACTIONS_CACHE_KEY="flutter-$RUNNER_OS-$SETUP_FLUTTER_REF-$SETUP_FLUTTER_REF_HEAD"
else
SETUP_FLUTTER_ACTIONS_CACHE_KEY="$SETUP_FLUTTER_ACTIONS_CACHE_KEY-$SETUP_FLUTTER_REF_HEAD"
fi
echo "SETUP_FLUTTER_ACTIONS_CACHE_KEY=$SETUP_FLUTTER_ACTIONS_CACHE_KEY" \
>> "$GITHUB_ENV"
Expand Down

0 comments on commit b6897d4

Please sign in to comment.