-
Notifications
You must be signed in to change notification settings - Fork 33
Add maintainer workflow for automated gh-aw upgrades #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
docs/maintainer.md
Outdated
| @@ -0,0 +1,86 @@ | |||
| # 🔧 Maintainer Workflow | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot remove docs on maintainer, it is an internal workflow. Remove from readme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed docs/maintainer.md and the Maintenance Workflows section from README.md in commit e7a30f4.
Co-authored-by: pelikhan <[email protected]>
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot move these instructions as steps in the front matter. No need to update since this is a new container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
|
@copilot add repository dispatch support |
Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
workflows/maintainer.md
Outdated
| - 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot remove, gh cli is pre installed in actions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the "Install gh CLI" step since gh CLI is pre-installed in GitHub Actions. Commit 74cedae.
workflows/maintainer.md
Outdated
|
|
||
| - name: Install gh-aw extension | ||
| run: | | ||
| gh extension install githubnext/gh-aw || gh extension upgrade githubnext/gh-aw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot no need for upgrade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the upgrade fallback from the gh-aw extension installation command. Now it only runs gh extension install githubnext/gh-aw. Commit 74cedae.
Co-authored-by: pelikhan <[email protected]>
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.