Skip to content

Fix Step 1 workflow activation - #73

Merged
arilivigni merged 4 commits into
mainfrom
arilivigni-fix-workflow-reset
Aug 9, 2026
Merged

Fix Step 1 workflow activation#73
arilivigni merged 4 commits into
mainfrom
arilivigni-fix-workflow-reset

Conversation

@arilivigni

@arilivigni arilivigni commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

The exercise setup fails after the toolkit disables all step workflows because display-name lookup does not resolve an already-disabled workflow reliably.

Keep using the gh workflow client, but select workflows by filename. Step 0 explicitly disables Steps 2 and 3, enables Step 1, and then disables itself after the handoff.

Remove redundant workflow disable commands that fail when the exercise toolkit has already disabled those workflows.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: d523f2fa-5ffe-4981-846a-3627b824bae9
Copilot AI lite review requested due to automatic review settings August 9, 2026 17:22
Use the Actions API with workflow filenames so Steps 2 and 3 are disabled regardless of their current state before Step 1 is enabled.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: d523f2fa-5ffe-4981-846a-3627b824bae9

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Step 0 (“Start Exercise”) GitHub Actions workflow to avoid failing exercise initialization when step workflows are already disabled, by removing redundant disable calls and only enabling Step 1.

Changes:

  • Remove the sequence of gh workflow disable ... calls for Step 1–3 and the current workflow.
  • Keep the initialization flow moving by enabling Step 1 directly via gh workflow enable.
Show a summary per file
File Description
.github/workflows/0-start-exercise.yml Simplifies workflow activation logic to avoid failing when workflows are already disabled and to ensure Step 1 is enabled for learners to continue.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread .github/workflows/0-start-exercise.yml Outdated
Use the workflow file name so Step 0 is disabled idempotently after enabling Step 1.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: d523f2fa-5ffe-4981-846a-3627b824bae9
Select workflows by filename so disabled workflows resolve reliably while retaining the gh workflow client commands.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: d523f2fa-5ffe-4981-846a-3627b824bae9

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@arilivigni
arilivigni merged commit aeba803 into main Aug 9, 2026
1 check passed
@arilivigni
arilivigni deleted the arilivigni-fix-workflow-reset branch August 9, 2026 17:31
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