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:
1010 publish :
1111 description : ' Publish artifacts'
1212 default : ' true'
13+ disable-cache :
14+ description : ' Disable cache'
15+ default : ' false'
1316runs :
1417 using : composite
1518 steps :
@@ -24,11 +27,12 @@ runs:
2427 uses : gradle/actions/setup-gradle@v3
2528 with :
2629 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' }}
2831 build-scan-publish : true
2932 build-scan-terms-of-use-url : " https://gradle.com/terms-of-service"
3033 build-scan-terms-of-use-agree : " yes"
3134 add-job-summary-as-pr-comment : on-failure
35+ cache-disabled : ${{ inputs.disable-cache }}
3236
3337 - name : Publish release
3438 shell : bash
Original file line number Diff line number Diff line change @@ -223,11 +223,12 @@ runs:
223223 uses : gradle/actions/setup-gradle@v3
224224 with :
225225 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' }}
227227 build-scan-publish : true
228228 build-scan-terms-of-use-url : " https://gradle.com/terms-of-service"
229229 build-scan-terms-of-use-agree : " yes"
230230 add-job-summary-as-pr-comment : on-failure
231+ cache-disabled : ${{ inputs.disable-cache }}
231232
232233 - name : Publish release
233234 shell : bash
You can’t perform that action at this time.
0 commit comments