Skip to content

Comments

Add auto-recompile workflow for agentic workflow markdown files#2907

Merged
plengauer merged 8 commits intomainfrom
copilot/create-auto-recompile-workflow
Feb 16, 2026
Merged

Add auto-recompile workflow for agentic workflow markdown files#2907
plengauer merged 8 commits intomainfrom
copilot/create-auto-recompile-workflow

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Adds workflow to automatically recompile agentic workflow markdown files (.github/workflows/*.md) using gh aw compile and auto-merge changes on main branch.

Implementation

  • Trigger: Push to main when .github/workflows/*.md files change
  • Compilation: Installs gh-aw extension and recompiles all markdown workflow files to .lock.yml files using gh aw compile
  • Change Detection: Detects new or modified .lock.yml files in the workflows directory
  • PR flow: Creates PR via peter-evans/create-pull-request@v8.1.0, enables automerge via gh pr merge --squash --auto

Follows the established pattern from refresh_demos.yml and renovate.yml workflows:

  • Uses ACTIONS_GITHUB_TOKEN with contents: read permissions for authentication
  • 60s delay before automerge for API state propagation
  • Resolves reviewers from .github/renovate.json
  • OpenTelemetry instrumentation on job
Original prompt

Create a workflow that automatically recompile and open a pull request with auto merge when an agentic workflow file is touched on the main branch. look at other workflows and open prs with automerge the same way


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

Copilot AI and others added 2 commits February 14, 2026 04:44
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Copilot AI changed the title [WIP] Add workflow for auto recompilation and PR opening Add auto-recompile workflow for copilot instructions Feb 14, 2026
Copilot AI requested a review from plengauer February 14, 2026 04:48
Copy link
Owner

@plengauer plengauer left a comment

Choose a reason for hiding this comment

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

@copilot u misunderstood. Im not wanting to recompile the copilot instructions, but rather agentic workflows that are in the workflows directory as md files. They need to be recompiled with gh aw compile when the markdown files are touched

Copy link
Contributor Author

Copilot AI commented Feb 14, 2026

@copilot u misunderstood. Im not wanting to recompile the copilot instructions, but rather agentic workflows that are in the workflows directory as md files. They need to be recompiled with gh aw comp...

Understood! I'll update the workflow to:

  1. Trigger on changes to .github/workflows/*.md files (agentic workflow markdown files)
  2. Recompile them using gh aw compile
  3. Open a PR with the compiled .lock.yml files

Working on the fix now.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/github/gh-aw/releases/latest
    • Triggering command: /usr/bin/gh gh extension install github/gh-aw pipe�� (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI and others added 4 commits February 14, 2026 10:24
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Co-authored-by: plengauer <100447901+plengauer@users.noreply.github.com>
Copilot AI changed the title Add auto-recompile workflow for copilot instructions Add auto-recompile workflow for agentic workflow markdown files Feb 14, 2026
Copilot AI requested a review from plengauer February 14, 2026 10:28
@plengauer plengauer marked this pull request as ready for review February 14, 2026 11:19
@plengauer plengauer requested a review from moflwi as a code owner February 14, 2026 11:19
Copilot AI review requested due to automatic review settings February 14, 2026 11:19
@plengauer plengauer enabled auto-merge (squash) February 14, 2026 11:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a GitHub Actions workflow intended to automatically recompile “agentic workflow” Markdown files (.github/workflows/*.md) into generated workflow files and then open/auto-merge a PR with the results.

Changes:

  • Introduces a new workflow triggered on pushes to main when .github/workflows/*.md (or the workflow itself) changes.
  • Installs gh-aw and runs gh aw compile over workflow Markdown files.
  • Opens a PR via peter-evans/create-pull-request and attempts to enable squash auto-merge via gh pr merge --auto.

@plengauer plengauer merged commit 38ec31e into main Feb 16, 2026
563 checks passed
@plengauer plengauer deleted the copilot/create-auto-recompile-workflow branch February 16, 2026 16: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.

3 participants