| name | winget-pr-retry |
| description | WinGet 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
- Navigate to
external/winget-pkgssubmodule - Checkout specified branch (or use current)
- Create empty commit with
git commit --allow-empty - 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