Winget auto-update workflow
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 68/100
Direzione di ricerca
Inizia con l’action WinGet Releaser proposta e la relativa configurazione dell’evento release, quindi controlla le convenzioni GitHub Actions esistenti del repository prima di aggiungere il workflow. Conferma che i maintainer possano fornire il token classico public_repo e un fork di winget-pkgs; il lavoro è completato quando una release stabile pubblicata seleziona l’asset .msi e apre una PR di aggiornamento per RimSort.RimSort.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Origin of idea
I recently updated the winget package RimSort.RimSort to 1.8.0, it had been stuck on 1.0.30 for about a year. That PR to microsoft/winget-pkgs has now been merged, so winget users can get the current release again. (Congrats on 1.10.0 release!)
In the process I also switched the manifest from the old zip/portable setup to the .msi, which installs and uninstalls cleanly.
To avoid the package falling behind, I'd like to set up a small GitHub Actions workflow that automatically publishes each new RimSort release to winget, and I'm happy to write it and submit the PR myself.
Suggestion/proposed solution?
The community standard for this is the WinGet Releaser action, which runs Komac under the hood. On each published release it reads the release assets, generates the updated manifests using the existing published version as a base, and opens the PR to microsoft/winget-pkgs automatically. The PRs it produces are well-trusted by winget moderators, so they tend to get reviewed and merged quickly.
The workflow itself is tiny:
name: Publish to WinGet
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: vedantmgoyal9/winget-releaser@v2
with:
identifier: RimSort.RimSort
installers-regex: '\.msi$'
token: ${{ secrets.WINGET_TOKEN }}
A couple of RimSort-specific notes:
- installers-regex: '.msi$' pins it to the MSI asset, so it stays consistent with the current manifest and doesn't pick up the .zip Windows asset.
- types: [released] fires only on published stable releases, not prereleases, so draft/pre-release builds won't get pushed to winget.
What the workflow needs from maintainers
The action requires two things set up on your side, which is really the only reason this needs maintainer involvement:
- A classic Personal Access Token with
public_reposcope, stored as a repo secret (e.g.WINGET_TOKEN). Note: fine-grained PATs are not supported, Komac can build manifests with one but can't open the PR to winget-pkgs, so it has to be a classic token. - A fork of
microsoft/winget-pkgsunder the account that owns the token. If the fork lives on a personal/bot account rather than the RimSort org, the action'sfork-userinput can point at it.
(One version already being present in winget-pkgs is also a prerequisite, that's covered by the 1.0.30 and 1.8.0 manifests.)
Alternatives considered
If you'd prefer something that doesn't depend on the release event firing, michidk/winget-updater does the same thing but polls for the latest GitHub release on a schedule instead. Same Komac backend, same token/fork requirements. WinGet Releaser is the more common choice, and tbh i haven't looked that deeply into this one.
Additional context
No response
Code of Conduct
I agree to follow this project's Code of Conduct
Duplicate Issue Check
I've checked for similar issues and didn't find anything
Wiki/FAQ Check
I've checked the Wiki for a solution and didn't find a solution
- Lingua principale
- Python
- Stelle
- 1.2k
- Fork
- 155
- Merge medio
- 7h 23m
- PR unite (30g)
- 62
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RimSort/RimSort
-
bugs 🪲
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
bugs 🪲
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
RimSort/RimSort#2562 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bugs 🪲
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
RimSort/RimSort#2538 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
feature/improvement 🆕
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
RimSort/RimSort#2534 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
I think I've found the root cause of the `I/O Operation Failed` errors (same as #2185 and #828).Forse già presa @LionelColaso l’ha presa 4 giorni fa. Apertabugs 🪲
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
RimSort/RimSort#2525 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RimSort/RimSort
Issue simili
-
[Bug] Unit tests reach real Bedrock call paths without patching the modelForse già presa @proton0210 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
aws-samples/sample-aws-genai-db-modernizer#1318 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
pyarrow-25.0.1-cp310-cp310-manylinux_2_28_x86_64.whl: 1 vulnerabilities (highest severity is: 5.3)ApertaMend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
capitalone/locopy#394 ·
-
[Bug] Unhandled ValueError terminates watchdog thread when GISRC value contains multiple colonsApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
sdk-typescript: unquoted COPY globs in shell form are silently dropped from the image build contextApertabug javascript
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
ietf-tools/datatracker#11922 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno