diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f86c2c9..70d362f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -13,7 +13,7 @@ jobs: permissions: pull-requests: read outputs: - change_detection_src: ${{ steps.change_detection.outputs.src }} + change_detection: ${{ steps.change_detection.outputs }} steps: - name: checkout @@ -37,14 +37,14 @@ jobs: - 'playground/**' - name: build - if: ${{ steps.change_detection.outputs.changes == 'true' }} + if: ${{ steps.change_detection.outputs.changes != '[]' }} uses: ./.github/actions/build with: configuration: Debug useVersioning: false - name: test - if: ${{ steps.change_detection.outputs.changes == 'true' }} + if: ${{ steps.change_detection.outputs.changes != '[]' }} uses: ./.github/actions/test cd: @@ -52,7 +52,7 @@ jobs: runs-on: ubuntu-latest needs: ci if: > - needs.ci.outputs.change_detection_src == 'true' && + needs.ci.outputs.change_detection.src == 'true' && github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && (github.ref == 'refs/heads/main' ||