From 7f195b4bead51dc03da7a3a90ea8d76fce8a3c4c Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Sat, 27 Jan 2024 04:54:58 +0300 Subject: [PATCH 1/3] ci: fix winget-release workflow Closed #11842 Based on the same idea as in microsoft/devhome#2167 --- .github/workflows/release.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6085e81d0a166..7cfb3e895c5f3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -408,6 +408,9 @@ jobs: if: ${{ !inputs.dry_run }} steps: + - name: Sync fork + run: gh repo sync cdrci/winget-pkgs -b master + - name: Checkout uses: actions/checkout@v4 with: From 00a9b85985077995ee2f117262f3d5c928ce65a4 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Sat, 27 Jan 2024 04:57:26 +0300 Subject: [PATCH 2/3] add token --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7cfb3e895c5f3..eb2126ada212e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -410,6 +410,8 @@ jobs: steps: - name: Sync fork run: gh repo sync cdrci/winget-pkgs -b master + env: + GH_TOKEN: ${{ secrets.WINGET_GH_TOKEN }} - name: Checkout uses: actions/checkout@v4 From bf28b7556b2da5262697ee81a20d2cd4a423787a Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Sat, 27 Jan 2024 02:34:00 +0000 Subject: [PATCH 3/3] `make fmt` --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index eb2126ada212e..e606e10ea2a5f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -412,7 +412,7 @@ jobs: run: gh repo sync cdrci/winget-pkgs -b master env: GH_TOKEN: ${{ secrets.WINGET_GH_TOKEN }} - + - name: Checkout uses: actions/checkout@v4 with: