Add weekly upstream dev-sync workflow (autonomous) - #70
Open
Sjoerd-Bo3 wants to merge 1 commit into
Open
Sjoerd-Bo3 wants to merge 1 commit into
Sjoerd-Bo3 wants to merge 1 commit into
Conversation
Scheduled GitHub Actions workflow (Mondays) that syncs upstream dev into Build-Experiment autonomously: opens a PR and auto-merges once the compile check is green, or opens an issue when the merge conflicts. Lives on the default branch (dev) because scheduled workflows only run from there. See the file header for the one-time repo setup (SYNC_PAT secret, allow auto-merge, required check).
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.
Summary
A durable, autonomous weekly GitHub Actions workflow that syncs upstream
devinto Build-Experiment on its own — no Claude session or local machine needed.It targets the
devbranch because GitHub only runsschedule:workflows from the default branch, even though the job operates on Build-Experiment.What it does each Monday
chore/auto-dev-syncbranch, opens a PR to Build-Experiment, and enables auto-merge so it merges once the compile check passes.This matches the manual dev-sync we've been doing, and preserves fork customizations (the merge keeps our code; only genuinely-conflicting upstream changes stop it for review).
Without these it still opens the weekly PR — you'd just merge by hand:
SYNC_PATsecret — a fine-grained PAT withcontents:write+pull-requests:write. Required because pushes made with the defaultGITHUB_TOKENdo not trigger other workflows, so the compile check would never run on the sync branch and auto-merge could never see green.Notes
23 6 * * 1(off the :00 mark).🤖 Generated with Claude Code
Generated by Claude Code