Skip to content

ci: add automated upstream sync workflow and mirror upstream releases on release branch pushes#1

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/fix-upstream-pull-issues
Draft

ci: add automated upstream sync workflow and mirror upstream releases on release branch pushes#1
Copilot wants to merge 4 commits into
mainfrom
copilot/fix-upstream-pull-issues

Conversation

Copy link
Copy Markdown

Copilot AI commented May 9, 2026

Adds GitHub Actions automation to keep this fork aligned with OpenStickCommunity/GP2040-CE and extends it to mirror upstream releases when release is pushed.

Changes Made

  • Added upstream sync workflow (.github/workflows/sync-upstream.yml) to:
    • fetch upstream main
    • merge upstream changes when behind
    • push synced main updates to this repository
  • Added push trigger for the release branch.
  • Added release-mirroring job for release-branch pushes to:
    • sync upstream tags into this repository
    • create matching GitHub releases in this repository when missing
    • preserve release metadata (title/body, prerelease/draft flags)
  • Implemented paginated upstream release retrieval so all upstream releases are considered, not just the first page.

Validation

  • Workflow YAML validated successfully.
  • Existing web build command completed successfully.
  • Automated PR validation completed successfully (CodeQL/actions: no alerts).

Agent-Logs-Url: https://github.com/ap0ught/GP2040-CE/sessions/9d659e88-e8d6-465c-994a-88324c74074f

Co-authored-by: ap0ught <41078+ap0ught@users.noreply.github.com>
@ap0ught
Copy link
Copy Markdown
Owner

ap0ught commented May 10, 2026

@copilot make sure if we push to the release branch we will create the same releases as the upstream.

Copy link
Copy Markdown
Author

Copilot AI commented May 10, 2026

@copilot make sure if we push to the release branch we will create the same releases as the upstream.

Implemented in 95599eb. The workflow now triggers on pushes to release, syncs upstream tags, and mirrors upstream GitHub releases into this repo (including pagination so all upstream releases are considered).

Copilot AI changed the title ci: add automated upstream sync workflow from OpenStickCommunity/GP2040-CE ci: add automated upstream sync workflow and mirror upstream releases on release branch pushes May 10, 2026
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