winget-pr-retry

nuitsjp's avatarfrom nuitsjp

WinGet PR(microsoft/winget-pkgs)のCI/CDパイプラインを空プッシュで再トリガーすることで、リリースをリトライする。使用タイミング:(1) WinGet PRの自動実行がエラーになった場合、(2) microsoft/winget-pkgsへのPRでCI/CDを再実行したい場合、(3) リリースプロセスでWinGet検証を再トリガーする必要がある場合

⭐2stars🔀1forks📁View on GitHub🕐Updated Jan 3, 2026⬇️1downloads

When & Why to Use This Skill

The WinGet PR Retry skill is designed to automate the re-triggering of CI/CD pipelines for Microsoft WinGet package submissions. By programmatically pushing empty commits to the microsoft/winget-pkgs repository, it allows developers to bypass transient CI failures and restart the validation process efficiently, ensuring a smoother package release workflow.

Use Cases

  • Case 1: Retrying a WinGet package submission when the automated CI/CD pipeline fails due to transient environment issues or network timeouts.
  • Case 2: Manually re-triggering the validation process for a specific pull request branch to ensure it meets the latest repository requirements.
  • Case 3: Streamlining the release management process by using AI to handle repetitive git commands required for CI/CD re-runs.
namewinget-pr-retry
descriptionWinGet PR(microsoft/winget-pkgs)のCI/CDパイプラインを空プッシュで再トリガーすることで、リリースをリトライする。使用タイミング:(1) WinGet PRの自動実行がエラーになった場合、(2) microsoft/winget-pkgsへのPRでCI/CDを再実行したい場合、(3) リリースプロセスでWinGet検証を再トリガーする必要がある場合

WinGet PR Retry

Overview

WinGet PR(microsoft/winget-pkgs)の自動実行(CI/CD)がエラーになった場合、空コミットをプッシュしてパイプラインを再トリガーします。

Usage

Run the PowerShell script to retry a WinGet PR:

./skills/winget-pr-retry/scripts/Retry-WinGetPR.ps1

Parameters

  • -BranchName (optional): 再実行するブランチ名。省略時は現在のブランチ
  • -Message (optional): 空コミットのメッセージ。デフォルト: "Empty commit to retrigger CI/CD pipeline"

Examples

Current branch:

./skills/winget-pr-retry/scripts/Retry-WinGetPR.ps1

Specific branch:

./skills/winget-pr-retry/scripts/Retry-WinGetPR.ps1 -BranchName NuitsJp.GistGet-1.2.0

Custom message:

./skills/winget-pr-retry/scripts/Retry-WinGetPR.ps1 -Message "Retry: Fix validation error"

How It Works

  1. Navigate to external/winget-pkgs submodule
  2. Checkout specified branch (or use current)
  3. Create empty commit with git commit --allow-empty
  4. Push to origin to trigger CI/CD pipeline

Resources

scripts/

  • skills/winget-pr-retry/scripts/Retry-WinGetPR.ps1 - PowerShell Core script for retrying WinGet PRs