winget-pr-retry
WinGet PR(microsoft/winget-pkgs)のCI/CDパイプラインを空プッシュで再トリガーすることで、リリースをリトライする。使用タイミング:(1) WinGet PRの自動実行がエラーになった場合、(2) microsoft/winget-pkgsへのPRでCI/CDを再実行したい場合、(3) リリースプロセスでWinGet検証を再トリガーする必要がある場合
When & Why to Use This Skill
This Claude skill automates the process of retrying failed CI/CD pipelines for WinGet package submissions (microsoft/winget-pkgs). By programmatically pushing an empty commit to a specified branch, it re-triggers GitHub Actions and validation workflows, eliminating the need for manual git commands when dealing with transient CI errors or timeout issues.
Use Cases
- Case 1: Automatically retrying a WinGet PR validation that failed due to transient network issues or infrastructure errors in the microsoft/winget-pkgs repository.
- Case 2: Re-triggering the CI/CD pipeline for a specific branch to ensure the package passes the latest validation rules without making functional code changes.
- Case 3: Streamlining the release process by forcing a re-run of the WinGet verification suite when a pipeline hang occurs during the package submission workflow.
| 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