-
Notifications
You must be signed in to change notification settings - Fork 0
Add automated workflow update action #1
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
- Installs gh-aw extension using official installation script - Runs gh aw update to update workflow definitions - Runs gh aw compile to compile workflows - Automatically commits and pushes any changes - Scheduled to run weekly on Sundays - Can be manually triggered via workflow_dispatch Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Install gh CLI (if not already installed) |
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, always installed
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 gh CLI installation step in commit 5038584.
| - name: Verify gh-aw installation | ||
| run: gh aw version | ||
|
|
||
| - name: Run gh aw update |
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 run gh aw init instead
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.
Changed to gh aw init in commit 5038584.
- Remove gh CLI installation step (always installed on runners) - Replace 'gh aw update' with 'gh aw init' - Update commit message to reflect gh aw init Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Changed from "0 0 * * 0" to "23 0 * * 0" - Runs at 00:23 UTC instead of 00:00 UTC to avoid load spikes Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Automates the process of initializing and compiling agentic workflow definitions via scheduled GitHub Actions workflow.
Implementation
Created
.github/workflows/update-workflows.ymlwith:install-gh-aw.shscript to install thegh awCLI extensiongh aw initfollowed bygh aw compilegithub-actions[bot]identityKey Details
Workflow uses
contents: writepermission to enable pushing commits back to the repository. The gh CLI is pre-installed on GitHub Actions runners, so no additional installation is required. The cron schedule uses a randomized minute (23) to distribute load across GitHub Actions infrastructure.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.