Add the submit action #2
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jeff/winget-submit!2
Loading…
Reference in a new issue
No description provided.
Delete branch "submit-action"
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?
Closes #1.
Adds a composite action (
action.yml) that runswinget_submit.pyfrom this repository's flake, likeniks3-pushdoes. Steps:jeff/winget-pkgsatmain, a shallow clone.nix develop -c python3 -m wingetsource new-version --json ...in that clone.GET /user.wingetsource check --changed-since origin/main. It runs on the commit becausecheckfinds changed versions by diffing.submit/<identifier>/<version>.<identifier> <version>, unless one is already open from that branch injeff/winget-pkgs.The body links the release (the
release-notes-url, or else the tag's release page), the workflow run, and the version it was copied from.identifier,version,installers(one<architecture> <url>per line),release-notes-url,release-date,token,dry-run. The forge andjeff/winget-pkgsare built in.http.<forge>/.extraHeadersetting throughGIT_CONFIG_*environment variables. It never appears in the process list or in the clone's config.nix build .#submit.REUSE.tomlloses three annotations copied fromwinget-pkgsfor paths that don't exist here.Depends on jeff/winget-pkgs#10
The copied-from version comes from
new-version --json, which is jeff/winget-pkgs#10. Until that merges, the action fails at thenew-versionstep.Tested
I ran a dry run against the real
jeff/winget-pkgs, with the script pointed at #10's branch instead ofmainfor that run only. It wrote Clipwatch 0.2.1 from 0.2.0.checkdownloaded the installer from git.jcollie.dev and reported 0 problems, and the body came out as expected. The installer was Clipwatch's source archive, because Clipwatch has no Windows asset on git.jcollie.dev yet. Pushing and opening a pull request haven't been exercised; that needsWINGET_BOT_TOKEN(jeff/winget-pkgs#8).🤖 Generated with Claude Code
https://claude.ai/code/session_01D31MsLkM9DkCauP1EB2zgw