Skip to content

Commit 4c5719b

Browse files
committed
ci: add cache disable flag
1 parent 17a8719 commit 4c5719b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/actions/deploy-kotlin/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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'
1316
runs:
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

.github/actions/deploy-ubuntu/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)