diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4244e01..b2567f8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -24,8 +24,12 @@ jobs: - name: Check for diff id: diff run: | - git status -s dist/ | grep "dist/" || echo "SHOULD_PUSH_BUILD=false" >> "$GITHUB_OUTPUT - echo "SHOULD_PUSH_BUILD=true" >> "$GITHUB_OUTPUT" + if [ git status -s dist/ | grep "dist/" ]; then + echo "SHOULD_PUSH_BUILD=true" >> "$GITHUB_OUTPUT" + else + echo "SHOULD_PUSH_BUILD=false" >> "$GITHUB_OUTPUT" + fi + - name: Push build if: ${{ steps.diff.outputs.SHOULD_PUSH_BUILD == 'true' }} run: |