Don't populate Develocity cache in pull requests

That's potentially dangerous.
This commit is contained in:
Yoann Rodière 2024-03-28 17:29:29 +01:00
parent 2a8183371f
commit 3dcaa20c25
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ jobs:
- name: Run build script - name: Run build script
env: env:
RDBMS: ${{ matrix.rdbms }} RDBMS: ${{ matrix.rdbms }}
POPULATE_REMOTE_GRADLE_CACHE: true # Don't populate Develocity cache in pull requests as that's potentially dangerous
POPULATE_REMOTE_GRADLE_CACHE: "${{ github.event_name == 'push' }}"
GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_TOKEN }}" GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_TOKEN }}"
run: ./ci/build-github.sh run: ./ci/build-github.sh
shell: bash shell: bash