Skip to content

Commit

Permalink
Fix Cache directory
Browse files Browse the repository at this point in the history
Also add prefix to the cache key,
so that we can change the cache key when necessary.

Signed-off-by: Jonathan Schwender <[email protected]>
  • Loading branch information
jschwe committed Oct 12, 2024
1 parent c4f0034 commit a75b74e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ runs:
id: cache
uses: actions/cache@v4
with:
path: ~/ohos-sdk
key: "${{ runner.os }}-ohos-sdk-${{ inputs.version }}-${{ inputs.components }}-${{ inputs.fixup-path }}"
path: ~/setup-ohos-sdk
key: "v1-${{ runner.os }}-ohos-sdk-${{ inputs.version }}-${{ inputs.components }}-${{ inputs.fixup-path }}"
if: ${{ inputs.cache == 'true' }}
- name: Set GitHub Path
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
Expand Down

0 comments on commit a75b74e

Please sign in to comment.