Add maintainer workflow for automated gh-aw upgrades#55
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add agentic workflow to upgrade workflows to latest gh-aw version
Add maintainer workflow for automated gh-aw upgrades
Oct 22, 2025
pelikhan
reviewed
Oct 22, 2025
docs/maintainer.md
Outdated
| @@ -0,0 +1,86 @@ | |||
| # 🔧 Maintainer Workflow | |||
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
reviewed
Oct 22, 2025
workflows/maintainer.md
Outdated
| - Pay special attention to any migration guides or upgrade instructions | ||
|
|
||
| 2. **Install the latest gh-aw CLI extension**: | ||
| - Run `gh extension install githubnext/gh-aw || gh extension upgrade githubnext/gh-aw` to install or upgrade to the latest version |
Contributor
There was a problem hiding this comment.
@copilot move these instructions as steps in the front matter. No need to update since this is a new container.
Contributor
Author
There was a problem hiding this comment.
Moved the setup instructions (checkout repository, install gh CLI, install gh-aw extension) to the front matter steps: section. The AI agent instructions are now simplified since the environment is pre-configured. Commit ba594eb.
Contributor
|
@copilot add repository dispatch support |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
pelikhan
reviewed
Oct 22, 2025
workflows/maintainer.md
Outdated
Comment on lines
30
to
37
| - name: Install gh CLI | ||
| run: | | ||
| type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y) | ||
| curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||
| && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||
| && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ | ||
| && sudo apt update \ | ||
| && sudo apt install gh -y |
workflows/maintainer.md
Outdated
|
|
||
| - name: Install gh-aw extension | ||
| run: | | ||
| gh extension install githubnext/gh-aw || gh extension upgrade githubnext/gh-aw |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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.
This PR adds a new agentic workflow called "maintainer" that automates the process of upgrading workflows to the latest version of gh-aw. This addresses the need to keep workflows up-to-date with the latest gh-aw features, bug fixes, and breaking changes.
Note: This is an internal workflow for maintaining the agentics repository itself and is not documented for external use.
What's New
The maintainer workflow provides automated gh-aw version upgrades with intelligent error handling:
githubnext/gh-awrepository to understand new features, breaking changes, and migration instructionsworkflows/directory with the new versionKey Features
workflow_dispatchso maintainers can run it when needed (e.g., after gh-aw releases)repository_dispatchwith event typemaintainerfor automated triggering via GitHub API or webhooksread-allpermissions with controlled write operations through safe-outputsFiles Added
workflows/maintainer.md- The workflow definition with detailed instructions for the AI agent (internal use only)Usage
This workflow is for internal repository maintenance. Trigger it manually via workflow_dispatch when gh-aw releases a new version:
Or trigger it programmatically via repository_dispatch:
The workflow will either create a PR with the upgrades or an issue if manual intervention is needed.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.