From 0d4d7f6409141e09333ea03d05c37db0cdcf6790 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Tue, 14 Jul 2026 13:25:56 -0500 Subject: [PATCH] Build JARs with Java version based on branch This commit updates the release workflow to use Java 17 to build the JAR files if releasing from the `8.x` branch, otherwise Java 21 is used. Signed-off-by: Charlie Sharpsteen --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57f7e2f94..8b0ccc899 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,7 @@ jobs: uses: 'openvoxproject/shared-actions/.github/workflows/clojure_release.yml@main' with: base-branch: ${{ inputs.branch }} + java-version: ${{ case(inputs.branch == '8.x', '17', '21') }} secrets: github_pat: ${{ secrets.OPENVOXBOT_COMMIT_AND_PRS }} ssh_private_key: ${{ secrets.OPENVOXBOT_SSH_PRIVATE_KEY }}