Repository navigation
Add automated Magento/MageOS version update workflow - #64
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add GitHub action to auto update Magebox with new releases
Add automated Magento/MageOS version update workflow
Apr 3, 2026
peterjaap
marked this pull request as ready for review
April 3, 2026 15:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New upstream releases were detected but required manual YAML edits and a hand-crafted PR. This automates the full cycle: detect → update → open PR.
scripts/update_versions.pyNew Python script (
ruamel.yaml) that modifies both version registries in one shot:internal/lib/config/versions.yaml(embedded in binary)lib/templates/config/versions.yaml(user-overridable)Key behaviours:
major.minor.patchentry, falls back to a static map (2.4.8.x → ["8.4","8.3","8.2"], etc.)major.minorseries → GitHub release notes → latest known Magento version(Latest)/default: true, demotes old one.github/workflows/auto-update-versions.ymlScheduled workflow (Mon 10:00 UTC, after
version-check.yml) plusworkflow_dispatchwith optional manual overrides.Steps:
magento/magento2andmage-os/mageos-magento2tags via GitHub API, diffs against the YAML registryupdate_versions.pywith resolved argsauto-update-versions/<versions>branch and opens a PR labelledauto-update; no-ops if an open PR for that branch already existsWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
github.com (HTTP Only)/usr/bin/ssh /usr/bin/ssh -o SendEnv=GIT_PROTOCOL [email protected] git-upload-pack 'org/repo.git' HEAD(packet block)nonexistent.invalid.host/tmp/go-build2975933279/b368/teamserver.test /tmp/go-build2975933279/b368/teamserver.test -test.testlogfile=/tmp/go-build2975933279/b368/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true 3/x64=/_/GOROOT(dns block)If you need me to access, download, or install something from one of these locations, you can either: