Add scheduled workflow to upgrade gh-aw agentic workflows#38829
Open
jeremymeng wants to merge 2 commits into
Open
Add scheduled workflow to upgrade gh-aw agentic workflows#38829jeremymeng wants to merge 2 commits into
jeremymeng wants to merge 2 commits into
Conversation
Adds .github/workflows/upgrade-agentic-workflows.md, a weekly workflow that runs `gh aw upgrade`, resolves any reported issues, recompiles all workflows, and bumps the pinned gh-aw version in .github/agents/agentic-workflows.agent.md and .github/workflows/copilot-setup-steps.yml. Changes ship via a single safe-output pull request. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new scheduled Agentic Workflows job intended to automatically upgrade gh-aw, recompile all workflow .lock.yml files, update pinned references, and open a single PR via safe-outputs.create-pull-request.
Changes:
- Added
.github/workflows/upgrade-agentic-workflows.mddefining the weekly/dispatchable upgrade procedure and constraints. - Added the compiled workflow
.github/workflows/upgrade-agentic-workflows.lock.ymlgenerated from the markdown source.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/upgrade-agentic-workflows.md | New agentic workflow source defining the upgrade/compile/version-bump PR process. |
| .github/workflows/upgrade-agentic-workflows.lock.yml | Generated compiled workflow to be executed by GitHub Actions. |
jeremymeng
commented
Jun 4, 2026
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.
Keeping
gh-awand the compiled.lock.ymlfiles current is currently a manual chore that has to be remembered and repeated whenever upstream cuts a release. This adds a scheduled agentic workflow that does the upgrade end-to-end and proposes the result as a single PR for review.Approach
A new workflow at
.github/workflows/upgrade-agentic-workflows.mdruns weekly (and onworkflow_dispatch) and does the following:gh-awversion from.github/workflows/copilot-setup-steps.yml, queriesgithub/gh-awfor the latest release, and exits early if we are already current.gh aw upgradefrom the repo root, applies the reported codemods, and makes surgical edits to individual workflow.mdfiles for any deprecations / breaking changes it cannot auto-fix.gh aw compileto regenerate every.lock.yml, fixing source files and re-compiling until the command exits cleanly.uses: github/gh-aw-actions/setup-cli@<sha> # v<version>andwith.versionincopilot-setup-steps.yml(both the SHA and tag).https://github.com/github/gh-aw/blob/v<old>/...URL in.github/agents/agentic-workflows.agent.md.safe-outputs.create-pull-request(draft if any upgrade or compile issue could not be resolved automatically, otherwise a regular PR).Notes
safe-outputs.create-pull-requestexclusively; it does not push commits or open PRs through theghCLI directly.weekly on mondaycron form to distribute load.gh aw compile: 0 errors, 0 warnings. Both the source.mdand generated.lock.ymlare included.