From 1b892246b13dff1bcd539d10f828e1043b7d3d0c Mon Sep 17 00:00:00 2001 From: Gaelle Fournier Date: Fri, 9 Feb 2024 11:11:54 +0100 Subject: [PATCH] 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 c5e0ffd0eb..05415dff38 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 c79e6b3edb..399cbd210e 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"