Skip to content

Commit

Permalink
fix caching for loom-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
aria1th committed Apr 5, 2023
1 parent a32baa5 commit 33a32c7
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@
on:
push:
# ignore *.md *.yml file changes
branches: [ '*' ]
# run on 'multiversion' branch
branches: [ multiversion ]
paths-ignore:
- '**.md'
- '**.yml'
pull_request:
branches: [ '*' ]
paths-ignore:
- '**.md'
- '**.yml'

# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time

Expand All @@ -27,8 +22,8 @@ jobs:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/loom-cache
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
./.gradle/loom-cache
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
Expand Down

0 comments on commit 33a32c7

Please sign in to comment.