Build the submit action #1
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#1 Submit new versions to the JCOllie winget source
jeff/clipwatch
#7 Add wingetsource new-version
jeff/winget-pkgs
Reference
jeff/winget-submit#1
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?
Part of jeff/winget-pkgs#4
Blocked by: jeff/winget-pkgs#7
Build the action itself: a composite Forgejo action that makes a submission to
jeff/winget-pkgsfor a new release of a program, pinned by commit from each program the wayniks3-pushis. It handles only git and Forgejo; the manifest is written bywingetsource new-versionfrom a checkout ofjeff/winget-pkgsatmain(ADR 0004 there, jeff/winget-pkgs#6).Shape
Like
niks3-push:action.ymlwithruns: using: composite, one step runningnix run "path:${{ github.action_path }}#submit", the script and its tools coming from this repository's flake. The script is Python.Inputs
identifierJCOllie.Clipwatchversioninstallers<architecture> <url>per linerelease-notes-url--release-notes-urlrelease-date--release-date;new-versiondefaults it to today in UTCtokensecrets.WINGET_BOT_TOKENdry-runThe forge (
https://git.jcollie.dev) and the repository (jeff/winget-pkgs) are built in, not inputs. The action does not judge whether a version is a prerelease; the calling workflow decides whether to call it.Steps
jeff/winget-pkgsatmainwith the token.nix develop -c python3 -m wingetsource new-version ...there, passing the inputs through. Its failure (existing version directory, no previous version, different architectures) is the action's failure.nix develop -c python3 -m wingetsource check --manifests manifests --changed-since origin/mainthere. On failure, print its problems and stop without pushing.winget-botwith the messageJCOllie.<Program> <version>, on the branchsubmit/JCOllie.<Program>/<version>.JCOllie.<Program> <version>, whose body links the program's release, the workflow run that opened it, and the version it copied from.Also
release.yml, includingWINGET_BOT_TOKENand skipping prereleases. Replace the note that says there is no action yet.installers, the branch name and title, and the pull request body.Done when
A
dry-runagainst the realjeff/winget-pkgswith a Clipwatch version prints the expected new directory and a passing check, and CI is green.