mirror of https://github.com/apache/kafka.git
try without the env
This commit is contained in:
parent
f49e70b90e
commit
7db18dffc9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue