Skip to content

Commit dc74ec9

Browse files
committed
chore: allow nuking gradle build cache
1 parent 258c054 commit dc74ec9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ on:
66
branches:
77
- "main"
88
- "initial-version"
9-
workflow_dispatch: null
9+
workflow_dispatch:
10+
inputs:
11+
force_gradle_cache_clean:
12+
description: "Force gradle cache clean"
13+
required: false
14+
default: "false"
1015
concurrency:
1116
group: "${{ github.workflow }}-${{ github.ref }}"
1217
cancel-in-progress: true
@@ -36,6 +41,9 @@ jobs:
3641
uses: "gradle/actions/setup-gradle@v4"
3742
with:
3843
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/initial-version' }} # TODO remove when initial-version is removed
44+
- name: "Nuke gradle cache"
45+
if: "${{ github.event.inputs.force_gradle_cache_clean == 'true' }}"
46+
run: "rm -rf ~/.gradle/caches"
3947
- name: "Run check on build-logic subproject"
4048
run: "./gradlew :build-logic:check --no-configuration-cache"
4149
- name: "Run check on project"

0 commit comments

Comments
 (0)