Add release watcher polling upstream releases#15
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
.github/workflows/release-watch.ymlso this SDK self-polls the public latest release ofpilot-protocol/pilotprotocolevery 30 min (plusworkflow_dispatch) and triggers its ownpublish.ymlwhen PyPI is behind.Why
The old release fan-out pushed from web4 into this repo and needed a cross-repo PAT (
RELEASE_DISPATCH_TOKEN), because a release made with web4'sGITHUB_TOKENcan't trigger a sibling repo's workflow. A same-repo watcher avoids that: dispatchingpublish.ymlhere is same-repo, so the built-inGITHUB_TOKENis enough. No new PATs.How it works
schedule: '*/30 * * * *'+workflow_dispatch;permissions: actions: write(to dispatchpublish.yml).sort -Vcompare), runsgh workflow run publish.yml -f version=<X.Y.Z>in this same repo.publish.ymlis unchanged and still uses the existingPYPI_API_TOKEN; it's idempotent (skip-if-exists), so a redundant trigger is harmless.Poll lag ~30 min;
workflow_dispatchis the instant manual path. Validated withactionlint.