Allow specify workflow run to execute YAML files without a project#2825
Draft
Copilot wants to merge 4 commits into
Draft
Allow specify workflow run to execute YAML files without a project#2825Copilot wants to merge 4 commits into
specify workflow run to execute YAML files without a project#2825Copilot wants to merge 4 commits into
Conversation
Copilot
AI
changed the title
[WIP] Add support for --workflow input-file.yml in initialization
Add Jun 2, 2026
--workflow option to init for post-bootstrap workflow execution
Instead of adding --workflow to init, make `specify workflow run ./file.yml` work without requiring a .specify/ project directory. When the source is a YAML file that exists on disk, cwd is used as the project root. When it's a workflow ID, the .specify/ project requirement is preserved.
Contributor
Author
Done in 08d21cf. Removed the Usage: |
Copilot
AI
changed the title
Add
Allow Jun 3, 2026
--workflow option to init for post-bootstrap workflow executionspecify workflow run to execute YAML files without a project
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.
Makes
specify workflow run ./myworkflow.ymlwork without requiring a.specify/project directory. When the source argument is a YAML file path that exists on disk, the current working directory is used as the project root. When running by workflow ID, the existing project requirement is preserved.Changes
src/specify_cli/__init__.py: Modified theworkflow_runcommand to detect when the source is an existing YAML file and skip the.specify/project requirement, usingcwdas the project root instead.tests/test_workflow_run_without_project.py: Tests for running a YAML workflow without a project, verifying workflow ID still requires a project, handling missing YAML files, and reporting failure status.