use eclipse temurin as java distribution for github actions
This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch release-1.11.x in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 335d41571ff6a4a8fec79eab623c612975dba7c9
Author: Luca Burgazzoli <lburgazz...@gmail.com>
AuthorDate: Mon Jan 23 20:48:16 2023 +0100
feat: use eclipse temurin as java distribution for github actions
---
.github/actions/kamel-prepare-env/action.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/actions/kamel-prepare-env/action.yml
b/.github/actions/kamel-prepare-env/action.yml
index 90e0bc8d5..f83916760 100644
--- a/.github/actions/kamel-prepare-env/action.yml
+++ b/.github/actions/kamel-prepare-env/action.yml
@@ -51,10 +51,11 @@ runs:
df -h
- name: Set up JDK 11
- uses: AdoptOpenJDK/install-jdk@v1
+ uses: actions/setup-java@v3
if: ${{ env.ENV_PREPARED != 'true' }}
with:
- version: "11"
+ java-version: '11'
+ distribution: 'temurin'
- name: Set Go
uses: actions/setup-go@v2 # Version 2 adds GOBIN to PATH
Read more here: Source link
