Skip to content

Commit

Permalink
Fix installation script path (#2)
Browse files Browse the repository at this point in the history
Directly calling ${{ github.action_path }}/install_ohos_sdk.sh fails on windows, so we need to edit the action path.
  • Loading branch information
jschwe authored Jun 10, 2024
1 parent b37afda commit 8fde320
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8fde320

Please sign in to comment.