workaround for unsupported hashFiles function

This commit is contained in:
Franek 2024-05-13 10:22:26 +02:00
parent 708e25c622
commit 3fdd92ea35
No known key found for this signature in database
GPG Key ID: 0329F871B2079351

View File

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