Repository navigation
Add Pyrefly releases automatically - #8
Merged
Merged
Conversation
kinto0
force-pushed
the
kinto0/auto-update-pyrefly-releases
branch
5 times, most recently
from
December 3, 2026 21:19
8b25b21 to
5cd02ad
Compare
- What: a workflow that runs daily, adds every stable Pyrefly release newer than the newest entry in pyrefly/private/versions.bzl, and commits the change to main. It reads the SHA-256 values from the GitHub release asset digests and adds a CHANGELOG entry. - Why: each Pyrefly release needed a manual versions.bzl update. - Why it needs no secrets or settings: it polls the public releases API, and it pushes with GITHUB_TOKEN (main has no branch protection). A push made with GITHUB_TOKEN does not start CI, so the workflow then starts ci.yml on main with workflow_dispatch, the one event that GITHUB_TOKEN can trigger.
kinto0
force-pushed
the
kinto0/auto-update-pyrefly-releases
branch
from
December 3, 2026 21:28
5cd02ad to
8fb1d65
Compare
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.
the newest entry in pyrefly/private/versions.bzl, and commits the change to
main. It reads the SHA-256 values from the GitHub release asset digests and
adds a CHANGELOG entry.
pushes with GITHUB_TOKEN (main has no branch protection). A push made with
GITHUB_TOKEN does not start CI, so the workflow then starts ci.yml on main with
workflow_dispatch, the one event that GITHUB_TOKEN can trigger.
Test plan
python -m unittest discover -s tests -p "test_*.py"(9 pass).mainreplaced by a scratch branchkinto0/tmp-test-target:Added Pyrefly releases: 1.5.2.2b76267"Add Pyrefly 1.5.2" by github-actions[bot], changing onlyCHANGELOG.mdandpyrefly/private/versions.bzl.workflow_dispatch; all 7 jobs passed (run 47206981533).