Skip to content

Automate JDK version updates via versions.json single source of truth - #153

Merged
Luigi Montoya (Luigi96) merged 4 commits into
mainfrom
luigi96/auto-upgrade-version
Jul 23, 2026
Merged

Automate JDK version updates via versions.json single source of truth#153
Luigi Montoya (Luigi96) merged 4 commits into
mainfrom
luigi96/auto-upgrade-version

Conversation

@Luigi96

Copy link
Copy Markdown
Contributor

Summary

Introduces a single source of truth for JDK versions and automates keeping it up to date, replacing the hardcoded version matrices that previously had to be edited by hand in multiple places.

Changes

  • versions.json — new single source of truth for the expected JDK patch versions (temurin 8 + msopenjdk 11/17/21/25).

  • .github/workflows/check-versions.yml and .github/workflows/validate-published-images.yml — refactored to build their matrices from versions.json via a prepare job (using jq + fromJson) instead of duplicating hardcoded { major, expected } lists. This removes 3 copies of the version list.

  • scripts/update-versions.sh — new script that discovers the latest patch versions from the authoritative upstream sources:

    The majors to track are driven by the keys in versions.json.

  • .github/workflows/update-jdk-versions.yml — new scheduled workflow that runs the script and opens/updates a PR when a newer version is found. Runs Tuesdays and Thursdays at midnight PT so version-bump PRs can be merged before the automated Monday/Wednesday/Friday image builds. Manual workflow_dispatch runs support a mode input:

    • dry-run (default) — prints the detected diff to the job summary, no PR
    • create-pull-request — opens/updates the PR

Notes

  • GitHub Actions cron is pinned to 08:00 UTC (midnight PST).
  • Auto-generated PRs use the default GITHUB_TOKEN, so the validation workflows won't auto-trigger on them and may need a manual re-run.

Comment thread .github/workflows/update-jdk-versions.yml
Comment thread .github/workflows/update-jdk-versions.yml
@Luigi96
Luigi Montoya (Luigi96) merged commit d6e69d4 into main Jul 23, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants