Clear and generate new cache only when merging to develop (#2549)

Clearing the cache regularly doesn't work because on each new merge to develop a new cache of almost 4GB will be created and replace the 'cleared' one.

We can try doing a clean up to this cache we're about to save so it's a bit smaller.
This commit is contained in:
Jorge Martin Espinosa 2024-03-14 09:40:34 +01:00 committed by GitHub
parent 29929727ce
commit ab504a6095
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 34 deletions

View file

@ -47,6 +47,7 @@ jobs:
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
gradle-home-cache-cleanup: ${{ github.ref == 'refs/heads/develop' }}
- name: ⚙️ Run unit tests, debug and release
run: ./gradlew test $CI_GRADLE_ARG_PROPERTIES