Skip to content

Commit

Permalink
ci: add cache disable flag
Browse files Browse the repository at this point in the history
  • Loading branch information
silenium-dev committed Jul 28, 2024
1 parent 17a8719 commit 4c5719b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/actions/deploy-kotlin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ inputs:
publish:
description: 'Publish artifacts'
default: 'true'
disable-cache:
description: 'Disable cache'
default: 'false'
runs:
using: composite
steps:
Expand All @@ -24,11 +27,12 @@ runs:
uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: ${{ inputs.gradle-cache-encryption-key }}
gradle-home-cache-cleanup: true
gradle-home-cache-cleanup: ${{ inputs.disable-cache == 'true' && 'false' || 'true' }}
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
add-job-summary-as-pr-comment: on-failure
cache-disabled: ${{ inputs.disable-cache }}

- name: Publish release
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/deploy-ubuntu/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,12 @@ runs:
uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: ${{ inputs.gradle-cache-encryption-key }}
gradle-home-cache-cleanup: true
gradle-home-cache-cleanup: ${{ inputs.disable-cache == 'true' && 'false' || 'true' }}
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
add-job-summary-as-pr-comment: on-failure
cache-disabled: ${{ inputs.disable-cache }}

- name: Publish release
shell: bash
Expand Down

0 comments on commit 4c5719b

Please sign in to comment.