Skip to content

Create AzDO pipeline for JDK updates and enhance version detection - #156

Merged
Luigi Montoya (Luigi96) merged 8 commits into
mainfrom
luigi96/azdo-auto-update
Jul 24, 2026
Merged

Create AzDO pipeline for JDK updates and enhance version detection#156
Luigi Montoya (Luigi96) merged 8 commits into
mainfrom
luigi96/azdo-auto-update

Conversation

@Luigi96

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #153, which introduced versions.json as the single source of truth and the version-scraping script. This PR replaces the GitHub Actions updater from #153 with an Azure DevOps pipeline that actually opens the version-bump PR.

.devops/update-versions.yml runs scripts/update-versions.sh to refresh versions.json from the upstream sources (Microsoft Build of OpenJDK download page + Adoptium API) on a Tue/Thu schedule, then commits the change on a clean branch off main and opens a PR. Two new scripts keep the logic out of the pipeline YAML: summarize-version-changes.sh (renders a readable vendor major: old -> new summary) and open-version-pr.sh (creates/refreshes the PR).

Why Azure DevOps instead of GitHub Actions

The GitHub Actions workflow from #153 could refresh versions.json but couldn't open a PR: the default GITHUB_TOKEN is blocked from creating pull requests by org policy, and the usual workaround — a dedicated GitHub App — requires the OSPO / microsoft/github-operations approval process rather than being self-service. The Azure DevOps pipeline authenticates through the existing Github-Java-Engineering GitHub App service connection which already has the proper access to push the branch and open the PR with no new credentials or approvals.

Changes

  • Add .devops/update-versions.yml (scheduled AzDO pipeline, with a dry-run vs create-pull-request mode).
  • Add scripts/summarize-version-changes.sh and scripts/open-version-pr.sh.
  • Remove the non-working .github/workflows/update-jdk-versions.yml.

Tests

@jmjaffe37 jmjaffe37 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@Luigi96
Luigi Montoya (Luigi96) merged commit 2b36185 into main Jul 24, 2026
18 checks passed
@Luigi96
Luigi Montoya (Luigi96) deleted the luigi96/azdo-auto-update branch July 24, 2026 17:27
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