fix: workaround for unsupported hashFiles function #1

Merged
sadorowo merged 2 commits from patch/cache-fix into develop 2024-05-13 03:24:46 -05:00

View File

@ -33,13 +33,25 @@ jobs:
java-version: '17' java-version: '17'
cache: 'gradle' cache: 'gradle'
- name: Set up Go environment
uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: Get hash of Gradle files
uses: actions/go-hashfiles@v0.0.1
id: get-hash
with:
patterns: |-
**/*.gradle*
- name: Cache Gradle - name: Cache Gradle
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
~/.gradle/caches ~/.gradle/caches
~/.gradle/wrapper ~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }} key: gradle-${{ runner.os }}-${{ steps.get-hash.outputs.hash }}
- name: Get app version - name: Get app version
id: get_version id: get_version