Fix scheduled builds failing on missing repository field #27
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
monolith-os/monolith!27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-scheduled-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Forgejo's scheduled-event payload omits the
repositoryfield, but the blue-build CLI deserializesGITHUB_EVENT_PATHinto a struct that requires it (get_repo_url/get_registry), so nightly builds fail withmissing field \repository``. GitHub's own schedule payload includes it, which is why manual workflow_dispatch runs are unaffected.On scheduled runs, rebuild a valid payload from the
githubcontext and repoint the CLI at it via $GITHUB_ENV.default_branchis set toref_name(main on a schedule) soon_default_branch()stays true and dated release tags are still produced.Also adds a throwaway
test-event-overrideworkflow (workflow_dispatch) to verify the one uncertain part: that theGITHUB_EVENT_PATHoverride actually propagates via $GITHUB_ENV in the Forgejo runner. Run it on this branch, confirm the assert step passes, then remove the file before merge.🧪 Test this PR on a real install
Once the build checks on this PR pass, a signed test image is published for each edition. Pick the one matching your hardware and, from an existing Monolith install (which already has the signing policy), rebase onto it:
gnomegnome-nvidiaThe tags are rebuilt on every new commit here, so
rpm-ostree upgradepulls the latest build. When you're done testing, return to your edition's released image (:latest).The test tags stop updating once this PR is merged or closed.