From a75b74e7c328e72062b8c9c16584f532d75eb9ab Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Sat, 12 Oct 2024 18:58:51 +0200 Subject: [PATCH] Fix Cache directory Also add prefix to the cache key, so that we can change the cache key when necessary. Signed-off-by: Jonathan Schwender --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 8613bf3..7c92c45 100644 --- a/action.yml +++ b/action.yml @@ -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