Repository navigation
ci(conda): add a publish input to Conda Update's manual run (#2060) - #2150
Merged
Merged
Conversation
Owner
Author
|
GOOD TO GO at
|
A manual run is build-only, so a version missing platform files on Anaconda (1.5.0b14's win-64 and osx-64) had no way to get them there when no dependency moved. - Add a `publish` boolean input, false by default, to workflow_dispatch. - Add a `mode` job, the only reader of the input: its `publishes` output is 'true' on the schedule, a workflow_run and a manual run with publish on main, 'false' on any other manual run; publish off main fails it. - Every push/tag/upload/post step and every environment now reads `publishes`; conda-update joins repository-maintenance when it is 'true'. - Add "Decide whether to bump", which forces Bump Version, Commit Changes and Push Changes on a publishing manual run although nothing changed. - Update the workflow comments, workflows.rst and releasing.rst, the pins this moves, and add test_conda_publish_dispatch_2060.py.
JarryShaw
force-pushed
the
feat/2060-conda-publish-dispatch
branch
from
October 24, 2026 22:29
4b14236 to
6f5747a
Compare
Owner
Author
|
GOOD TO GO at
|
Contributor
|
Coverage: 91.55% (unit tier, Python 3.15,
Per-file detail: the |
Owner
Author
|
Ready to merge at
|
This was referenced Oct 25, 2026
Merged
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.
make testpasses, and a test case covers the change (narrow selections; see below)What is the purpose of your pull request?
ci— workflows or build toolingDescription
Part of #2060, per the owner's ruling there (option 1). A manual Conda Update run is build-only, and scheduled runs upload only after
util/conda_vendor.pyregenerates a different recipe. So 1.5.0b14's missingwin-64andosx-64files cannot reach Anaconda (#2140).publishinput.workflow_dispatchtakes a booleanpublish(default false). A newmodejob ("Conda run mode") is the only reader. Itspublishesoutput istrueon a schedule, on a pushworkflow_run, and on a publish dispatch ofmain. Any other ref is refused with::error.publishes. Every formergithub.event_name != 'workflow_dispatch'guard now reads it: push, tag, upload, release steps, both environments, therepository-maintenancegroup anddiscussion. Ifmodeis skipped or fails, the output is unset and nothing publishes.bump=trueon a publish dispatch even whenVerify Changed filessaw nothing. Bump Version, Commit Changes and Push Changes then run unchanged.CONDA_CHANGED(Push Changes'pushed) unlocksconda-tagand everyconda-distleg.mainmoves, or the build is already onmain, Push Changes emits a::warningsaying nothing was published and to re-dispatch withpublish. The run report goes tostatus=warning. Unforced notices are byte-identical.modejob.tests/project/test_conda_publish_dispatch_2060.py, plus pins updated in eight workflow-reading tests. The 22cron-conda.yml-reading files plus the tier guard: 709 passed. Againstorigin/main's workflow they give 54 failed (the new file alone: 37 of 44; the round-2 tests fail 10 against4b14236cf). Docs-reading tests: 492 passed. actionlint 1.7.12 oncron-conda.yml: clean.