Skip to content

Commit 6d98703

Browse files
committed
Only use predictive test selection on pull requests
1 parent 2b0eda2 commit 6d98703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
with:
2828
cache-read-only: ${{ github.event_name == 'pull_request' }}
2929
- name: Build
30-
run: ./gradlew --scan "-Pcom.github.gradle.node.predictivetestselection=true" ${{ matrix.config.params }}
30+
run: ./gradlew --scan "-Pcom.github.gradle.node.predictivetestselection=${{ github.event_name == 'pull_request' }}" ${{ matrix.config.params }}
3131
env:
3232
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}

0 commit comments

Comments
 (0)