diff --git a/.github/workflows/post-build-selective.yml b/.github/workflows/post-build-selective.yml index f38620160b8..27852e86705 100644 --- a/.github/workflows/post-build-selective.yml +++ b/.github/workflows/post-build-selective.yml @@ -55,8 +55,13 @@ jobs: log-accepted-android-sdk-licenses: false - run: ./mill -i -k selective.resolve ${{ inputs.millargs }} + if: github.event_name == 'pull_request' - run: ./mill -i -k selective.run ${{ inputs.millargs }} + if: github.event_name == 'pull_request' + + - run: ./mill -i -k ${{ inputs.millargs }} + if: github.event_name != 'pull_request' - run: 'taskkill -f -im java* && rm -rf out/mill-server/*' if: startsWith(inputs.os, 'windows')