Skip to content

chore(release): auto-sync winget-pkgs fork before submit#278

Merged
thewrz merged 1 commit into
mainfrom
chore/winget-fork-autosync
May 2, 2026
Merged

chore(release): auto-sync winget-pkgs fork before submit#278
thewrz merged 1 commit into
mainfrom
chore/winget-fork-autosync

Conversation

@thewrz

@thewrz thewrz commented May 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Today's v2026.05.02 release exposed a new winget submission failure mode not covered by #277: fork drift. wingetcreate update --submit aborted with:

The forked repository could not be synced with the upstream commits. Sync your fork manually and try again.

Manifest generation itself succeeded (`Manifest validation succeeded: True`); only the PR-submission step failed because GitHub's auto-sync API couldn't fast-forward our `thewrz/winget-pkgs` fork onto upstream master. Manual fix today was a one-liner: `gh repo sync thewrz/winget-pkgs`.

This PR adds that sync as a step in the `update-winget` job so the fork self-heals on every release.

Why not in #277

This blocker was invisible until we actually attempted a release; the audit only had visibility into past blockers that left a trail (closed winget-pkgs PRs, fix commits). Fork drift had been silently accumulating between Apr 8 and May 2.

Diff

7 lines added to `.github/workflows/release.yml` between the existing "Wait for release asset" and "Update winget package" steps. Uses `secrets.WINGET_PAT` (already present, no new secret).

Test plan

  • CI green on this PR
  • On next release tag (or via amending v2026.05.02 retroactively if useful), the new step runs and `Update winget package` proceeds without manual intervention

Today's v2026.05.02 release exposed a new failure mode: wingetcreate
exits with "The forked repository could not be synced with the upstream
commits" when our fork of microsoft/winget-pkgs has drifted from master.
Manifest generation succeeded; only the PR submission failed.

Manual recovery is `gh repo sync thewrz/winget-pkgs`. Add it as a step in
the update-winget job so the fork self-heals on every release instead of
needing manual intervention.
@thewrz thewrz merged commit 9bcc8aa into main May 2, 2026
10 checks passed
@thewrz thewrz deleted the chore/winget-fork-autosync branch May 2, 2026 22:54
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.

1 participant