Support wildcards in cache-excludes

This commit is contained in:
daz 2023-12-20 10:05:25 -07:00
parent f053e6b7e7
commit 9d6738618d
No known key found for this signature in database
2 changed files with 18 additions and 6 deletions

View file

@ -38,7 +38,8 @@ jobs:
enterprise
# Exclude build-cache from main cache entry
gradle-home-cache-excludes: |
caches/build-cache-1
caches/build-cache-*
caches/*/executionHistory/**
- name: Build using Gradle wrapper
working-directory: .github/workflow-samples/groovy-dsl
run: ./gradlew test
@ -63,7 +64,8 @@ jobs:
caches
enterprise
gradle-home-cache-excludes: |
caches/build-cache-1
caches/build-cache-*
caches/*/executionHistory/**
cache-read-only: true
- name: Execute Gradle build with --offline
working-directory: .github/workflow-samples/groovy-dsl