File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ inputs:
10
10
publish :
11
11
description : ' Publish artifacts'
12
12
default : ' true'
13
+ disable-cache :
14
+ description : ' Disable cache'
15
+ default : ' false'
13
16
runs :
14
17
using : composite
15
18
steps :
@@ -24,11 +27,12 @@ runs:
24
27
uses : gradle/actions/setup-gradle@v3
25
28
with :
26
29
cache-encryption-key : ${{ inputs.gradle-cache-encryption-key }}
27
- gradle-home-cache-cleanup : true
30
+ gradle-home-cache-cleanup : ${{ inputs.disable-cache == ' true' && 'false' || 'true' }}
28
31
build-scan-publish : true
29
32
build-scan-terms-of-use-url : " https://gradle.com/terms-of-service"
30
33
build-scan-terms-of-use-agree : " yes"
31
34
add-job-summary-as-pr-comment : on-failure
35
+ cache-disabled : ${{ inputs.disable-cache }}
32
36
33
37
- name : Publish release
34
38
shell : bash
Original file line number Diff line number Diff line change @@ -223,11 +223,12 @@ runs:
223
223
uses : gradle/actions/setup-gradle@v3
224
224
with :
225
225
cache-encryption-key : ${{ inputs.gradle-cache-encryption-key }}
226
- gradle-home-cache-cleanup : true
226
+ gradle-home-cache-cleanup : ${{ inputs.disable-cache == ' true' && 'false' || 'true' }}
227
227
build-scan-publish : true
228
228
build-scan-terms-of-use-url : " https://gradle.com/terms-of-service"
229
229
build-scan-terms-of-use-agree : " yes"
230
230
add-job-summary-as-pr-comment : on-failure
231
+ cache-disabled : ${{ inputs.disable-cache }}
231
232
232
233
- name : Publish release
233
234
shell : bash
You can’t perform that action at this time.
0 commit comments