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
Copy Markdown
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
Copy Markdown
Collaborator

@copilot run update after codemods

Copilot AI changed the title [WIP] Update upgrade command to run update before compile Add workflow update step to upgrade command Jan 24, 2026
Copilot AI requested a review from pelikhan January 24, 2026 11:03
@pelikhan pelikhan closed this Jan 24, 2026
Copilot stopped work on behalf of pelikhan due to an error January 24, 2026 11:05
@github-actions github-actions Bot deleted the copilot/update-upgrade-command-logic branch April 2, 2026 13:16
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