try without the env

This commit is contained in:
David Arthur 2025-07-07 14:16:04 -04:00
parent f49e70b90e
commit 7db18dffc9
2 changed files with 1 additions and 3 deletions

View File

@ -134,7 +134,6 @@ jobs:
- name: Compile and validate
env:
SCAN_ARG: ${{ inputs.is-public-fork && '--no-scan' || '--scan' }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.KAFKA_DEVELOCITY_ACCESS_KEY }}
# Gradle flags
# --build-cache: Let Gradle restore the build cache
# --info: For now, we'll generate lots of logs while setting up the GH Actions

View File

@ -64,8 +64,7 @@ buildCache {
// Check for the presence of the DEVELOCITY_ACCESS_KEY environment variable
// as a proxy for whether this is a fork or not. Forks should not try to push
// to the remote cache as they will not have permission to do so.
def accessKey = System.getenv('DEVELOCITY_ACCESS_KEY')
push = isGithubActions && accessKey
push = true
}
}