From 8fde3202e7848d9b65b54ecb8aa0e3063fda8185 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Date: Mon, 10 Jun 2024 14:25:58 +0200 Subject: [PATCH] Fix installation script path (#2) Directly calling ${{ github.action_path }}/install_ohos_sdk.sh fails on windows, so we need to edit the action path. --- action.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 9b84d0e..02b4eaf 100644 --- a/action.yml +++ b/action.yml @@ -33,11 +33,16 @@ runs: uses: actions/cache@v4 with: path: ~/ohos-sdk - key: ${{ runner.os }}-ohos-sdk-${{ inputs.version }} + key: "${{ runner.os }}-ohos-sdk-${{ inputs.version }}" if: ${{ inputs.cache == 'true' }} + - name: Set GitHub Path + run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH + shell: bash + env: + GITHUB_ACTION_PATH: ${{ github.action_path }} - name: Download and install OpenHarmony SDK id: install_ohos_sdk - run: ./install_ohos_sdk.sh + run: install_ohos_sdk.sh shell: bash if: ${{ inputs.cache != 'true' || steps.cache.outputs.cache-hit != 'true' }} env: