From 67a2e57313b1fa89355dd092b8c20601f06b5463 Mon Sep 17 00:00:00 2001 From: Carl Tashian Date: Tue, 3 Feb 2026 04:44:25 -0800 Subject: [PATCH] Add scheduled workflow to sync winget-pkgs fork The smallstep/winget-pkgs fork drifted ~86K commits behind microsoft/winget-pkgs, causing winget releases to fail with API errors. This workflow syncs the fork monthly to prevent drift. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/sync-winget-fork.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/sync-winget-fork.yml diff --git a/.github/workflows/sync-winget-fork.yml b/.github/workflows/sync-winget-fork.yml new file mode 100644 index 0000000..f4e869e --- /dev/null +++ b/.github/workflows/sync-winget-fork.yml @@ -0,0 +1,17 @@ +name: Sync winget-pkgs fork + +on: + schedule: + - cron: '0 0 1 * *' # First day of each month at midnight UTC + workflow_dispatch: # Allow manual trigger + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Sync fork with upstream + run: | + gh api -X POST repos/smallstep/winget-pkgs/merge-upstream \ + -f branch=master + env: + GH_TOKEN: ${{ secrets.GORELEASER_PAT }}