diff --git a/.github/workflows/verify-all-examples.yml b/.github/workflows/verify-all-examples.yml index 16efd8329e..43cafd476a 100644 --- a/.github/workflows/verify-all-examples.yml +++ b/.github/workflows/verify-all-examples.yml @@ -1,21 +1,22 @@ name: CI Examples on: - workflow_dispatch: push: - tags: - - v* - schedule: - # Run once a day at 3:00 AM EST - - cron: "0 8 * * *" + branches: + - main + pull_request: + branches: + - main jobs: + get-leptos-changed: + uses: ./.github/workflows/get-leptos-changed.yml get-examples-matrix: uses: ./.github/workflows/get-examples-matrix.yml - test: name: CI - needs: [get-examples-matrix] + needs: [get-leptos-changed, get-examples-matrix] + if: needs.get-leptos-changed.outputs.leptos_changed == 'true' strategy: matrix: ${{ fromJSON(needs.get-examples-matrix.outputs.matrix) }} fail-fast: false