Skip to content

Add workflow update step to upgrade command#11619

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/update-upgrade-command-logic
Closed

Add workflow update step to upgrade command#11619
Copilot wants to merge 3 commits intomainfrom
copilot/update-upgrade-command-logic

Conversation

Copy link
Contributor

Copilot AI commented Jan 24, 2026

The upgrade command was not updating workflows from their source repositories before compilation, causing workflows with source fields to remain outdated after an upgrade.

Changes

  • Added Step 2 to upgrade flow: calls UpdateWorkflows() after updating agent files
  • Updated documentation to reflect new 4-step process in help text
  • Non-critical failure handling: upgrade continues if no workflows have source fields or updates fail

New Upgrade Flow

1. Update agent files
2. Update workflows (workflows with 'source' field)  ← NEW
3. Apply codemods
4. Compile workflows
5. Push changes (if --push)

Example Output

ℹ Updating agent and prompt files...
✓ Updated agent and prompt files
ℹ Updating workflows from source repositories...
🔍 Skipping workflow-a: no source field
ℹ Found 1 workflow(s) to update
ℹ Updating workflow: workflow-b
✓ Updated workflow-b from v1.0.0 to v1.1.0
ℹ Applying codemods to all workflows...
ℹ Compiling all workflows...
✓ Upgrade complete

Respects --no-fix flag: skips workflow updates along with codemods and compilation.

Original prompt

The "upgrade" command should also run "update" before running "compile".


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 24, 2026 10:49
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan
Copy link
Contributor

@copilot run update after codemods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants