diff --git a/.github/workflows/post-build-selective.yml b/.github/workflows/post-build-selective.yml index f19c4d75ece..41c345fd983 100644 --- a/.github/workflows/post-build-selective.yml +++ b/.github/workflows/post-build-selective.yml @@ -61,7 +61,7 @@ jobs: if: (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'run-all-tests')) - run: ./mill -i -k ${{ inputs.millargs }} - if: !(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'run-all-tests')) + if: (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-all-tests')) - run: 'taskkill -f -im java* && rm -rf out/mill-server/*' if: startsWith(inputs.os, 'windows')