From a77fa28087baeb7cf660455514e26c678c5d485d Mon Sep 17 00:00:00 2001
From: Roberto Tyley <roberto.tyley@gmail.com>
Date: Wed, 6 Dec 2023 19:12:17 +0000
Subject: [PATCH] Try out https://github.com/actions/setup-java/pull/564 ..?

---
 .github/workflows/reusable-release.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml
index fa655a3..e17ed4e 100644
--- a/.github/workflows/reusable-release.yml
+++ b/.github/workflows/reusable-release.yml
@@ -30,7 +30,7 @@ jobs:
       key_fingerprint: ${{ steps.read-identifiers.outputs.key_fingerprint }}
       key_email: ${{ steps.read-identifiers.outputs.key_email }}
     steps:
-      - uses: actions/setup-java@v4
+      - uses: rtyley/setup-java@patch-1
         with:
           distribution: corretto
           java-version: 17
@@ -55,7 +55,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
-      - uses: actions/setup-java@v4
+      - uses: rtyley/setup-java@patch-1 # don't 'cache: sbt', at least until https://github.com/actions/setup-java/pull/564 is merged
         with:
           distribution: corretto
           java-version: 17
@@ -96,7 +96,7 @@ jobs:
           path: repo-with-unsigned-version-update-commits.git
           key: repo-with-unsigned-version-update-commits-${{ github.run_id }}-${{ github.run_attempt }}
           fail-on-cache-miss: true
-      - uses: actions/setup-java@v4
+      - uses: rtyley/setup-java@patch-1
         with:
           distribution: corretto
           java-version: 17
@@ -146,7 +146,7 @@ jobs:
       - uses: actions/checkout@v4
         with:
           ref: ${{ needs.push-release-commit.outputs.release_commit_id }}
-      - uses: actions/setup-java@v4
+      - uses: rtyley/setup-java@patch-1 # don't 'cache: sbt', at least until https://github.com/actions/setup-java/pull/564 is merged
         with:
           distribution: corretto
           java-version: 17
@@ -187,7 +187,7 @@ jobs:
           path: ${{ env.LOCAL_ARTIFACTS_STAGING_PATH }}
           key: unsigned-${{ github.run_id }}-${{ github.run_attempt }}
           fail-on-cache-miss: true
-      - uses: actions/setup-java@v4
+      - uses: rtyley/setup-java@patch-1
         with:
           distribution: corretto
           java-version: 17
@@ -255,7 +255,7 @@ jobs:
           echo 'sbt.version = 1.9.7' > project/build.properties
           
           ls -lR .
-      - uses: actions/setup-java@v4
+      - uses: rtyley/setup-java@patch-1
         with:
           distribution: corretto
           java-version: 17