winget-submit action and winget-bot user #4
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#5 Submit new versions from harrier's release workflow
jeff/winget-pkgs
Reference
jeff/winget-pkgs#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Programs are meant to submit new versions themselves rather than by a
hand-written pull request. That needs two things.
jeff/winget-submit: a reusable Forgejo action in its own repository,mirrored on Tangled and pinned by commit from each program the way
niks3-pushis. It is kept apart from this repository so that changing amanifest does not move the commit every program pins. Given a package
identifier, a version and the installer URLs, it:
package, and writes the version and installer files for the new one;
wingetsource checkon the result;jeff/winget-pkgs.The first version of a package is still written by hand; the action only
handles a package that already has a version.
winget-bot: a Forgejo user with write access tojeff/winget-pkgsandnothing else. A program workflow's
forge.tokenreaches only its ownrepository, so the bot's token is a secret on each program repository instead.
Branch protection already keeps it off
main: it can push branches and openpull requests, which still need the
testcheck and a merge by hand.Tickets
Settled in design: the manifest is written by
wingetsource new-versionhere (ADR 0004, #6), andjeff/winget-submitonly handles git and Forgejo.wingetsource new-versionwinget-botsubmitter with a wizardDone: every ticket above is closed. Clipwatch v0.2.1 was the first release submitted by itself (#13), through jeff/winget-submit as winget-bot, and the source now serves it.