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"