From d1b560f1dc0759406b6e964d96053b373141eb88 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Wed, 25 Dec 2024 23:19:40 +0800 Subject: [PATCH] fix: ci, again! --- .github/workflows/deploy-huggingface-spaces.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-huggingface-spaces.yml b/.github/workflows/deploy-huggingface-spaces.yml index 0e5a4a542..2c9ab673f 100644 --- a/.github/workflows/deploy-huggingface-spaces.yml +++ b/.github/workflows/deploy-huggingface-spaces.yml @@ -35,14 +35,16 @@ jobs: - run: pnpm install - run: pnpm build - - id: check_moonshine_web_changes + - id: moonshine_web_diff working-directory: ./packages/moonshine-web/dist run: |- mv ../README.md . git add . - git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT + if [[ -n $(git status --porcelain) ]]; then + echo "changes=true" >> "$GITHUB_OUTPUT"; + fi - - if: steps.check_moonshine_web_changes.outputs.changed == 'true' + - if: steps.moonshine_web_diff.outputs.changes == 'true' working-directory: ./packages/moonshine-web/dist env: HF_TOKEN: ${{ secrets.HF_TOKEN }} @@ -53,14 +55,16 @@ jobs: git commit -m "release: build ${{ github.sha }}" git push -f - - id: check_whisper_webgpu_changes + - id: whisper_webgpu_diff working-directory: ./packages/whisper-webgpu/dist run: |- mv ../README.md . git add . - git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT + if [[ -n $(git status --porcelain) ]]; then + echo "changes=true" >> "$GITHUB_OUTPUT"; + fi - - if: steps.check_whisper_webgpu_changes.outputs.changed == 'true' + - if: steps.whisper_webgpu_diff.outputs.changes == 'true' working-directory: ./packages/whisper-webgpu/dist env: HF_TOKEN: ${{ secrets.HF_TOKEN }}