Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fix Gradle caching (#2277)

Wouter Bornd8d488320332
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 96e52d9fa..a66b9cad3 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -279,6 +279,14 @@ jobs:
with:
files: ".ci_cd/ci_cd.json"
+ - name: Set up JDK 21 and gradle cache
+ id: java
+ uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5
+ with:
+ distribution: 'temurin'
+ java-version: '21'
+ cache: 'gradle'
+
- name: Get version details
id: get-version-details
run: |
@@ -586,15 +594,6 @@ jobs:
version: latest
install: true
- - name: Set up JDK 21 and gradle cache
- id: java
- if: ${{ steps.install-command.outputs.value != '' || steps.test-backend-command.outputs.value != '' }}
- uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4
- with:
- distribution: 'temurin'
- java-version: '21'
- cache: 'gradle'
-
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 76d2af208..b85f030d7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -35,7 +35,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up JDK 21 and gradle cache
- uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4
+ uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5
with:
distribution: 'temurin'
java-version: '21'