diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 981d9eef2de..8965d80dea6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -323,7 +323,7 @@ jobs: rust_test_miri: name: Rust test miri needs: [get-runner-labels, rust_changes] - if: ${{ needs.rust_changes.outputs.changed == 'true' }} + if: needs.rust_changes.outputs.changed == 'true' && github.ref_name == 'main' && github.repository_owner == 'web-infra-dev' runs-on: ${{ fromJSON(needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS) }} steps: - uses: actions/checkout@v4