Skip to content

Commit

Permalink
fix(ci): Java required by automatic-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer authored and squakez committed Feb 9, 2024
1 parent 855c57f commit 1b89224
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/actions/automatic-updates/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nightly-automatic-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ jobs:
branch-ref: ${{ matrix.ref-branch }}
secretGithubToken: ${{ secrets.GITHUB_TOKEN }}
goVersionFile: "go.mod"
javaVersion: "17"
javaDistribution: "temurin"

0 comments on commit 1b89224

Please sign in to comment.