From 33a32c75f35abafef154f1389cf64b042e114aea Mon Sep 17 00:00:00 2001 From: aria1th <35677394+aria1th@users.noreply.github.com> Date: Thu, 6 Apr 2023 04:02:44 +0900 Subject: [PATCH] fix caching for loom-cache --- .github/workflows/gradle.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index a825ac42..558839f1 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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 @@ -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