This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 1b892246b fix(ci): Java required by automatic-updates
1b892246b is described below
commit 1b892246b13dff1bcd539d10f828e1043b7d3d0c
Author: Gaelle Fournier <[email protected]>
AuthorDate: Fri Feb 9 11:11:54 2024 +0100
fix(ci): Java required by automatic-updates
---
.github/actions/automatic-updates/action.yml | 16 ++++++++++++++--
.github/workflows/nightly-automatic-updates.yml | 2 ++
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/.github/actions/automatic-updates/action.yml
b/.github/actions/automatic-updates/action.yml
index c5e0ffd0e..05415dff3 100644
--- a/.github/actions/automatic-updates/action.yml
+++ b/.github/actions/automatic-updates/action.yml
@@ -27,17 +27,29 @@ inputs:
goVersionFile:
required: true
type: string
+ javaVersion:
+ description: "Java version"
+ required: true
+ javaDistribution:
+ description: "Java distribution"
+ required: true
runs:
using: "composite"
steps:
-
+
- name: Install Go ${{ inputs.goVersionFile }}
uses: actions/setup-go@v4
with:
go-version-file: ${{ inputs.goVersionFile }}
check-latest: true
-
+
+ - name: Set up JDK ${{ inputs.javaVersion }}
+ uses: actions/setup-java@v4
+ with:
+ distribution: ${{ inputs.javaDistribution }}
+ java-version: ${{ inputs.javaVersion }}
+
- name: Generate changelog
uses: ./.github/actions/changelog
with:
diff --git a/.github/workflows/nightly-automatic-updates.yml
b/.github/workflows/nightly-automatic-updates.yml
index c79e6b3ed..399cbd210 100644
--- a/.github/workflows/nightly-automatic-updates.yml
+++ b/.github/workflows/nightly-automatic-updates.yml
@@ -49,3 +49,5 @@ jobs:
branch-ref: ${{ matrix.ref-branch }}
secretGithubToken: ${{ secrets.GITHUB_TOKEN }}
goVersionFile: "go.mod"
+ javaVersion: "17"
+ javaDistribution: "temurin"