From cfd2d330a04da354179b4c273679bbbfcbbc0327 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 13 May 2026 08:58:30 +0000 Subject: [PATCH 1/2] Initial plan From 031fd0a06f72c5c2f3003ac67115fa897c7be3c0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 13 May 2026 09:10:47 +0000 Subject: [PATCH 2/2] Fix aw-auto-update: add gh-aw CLI extension installation step The agent sandbox does not have gh aw pre-installed, causing "unknown command aw" errors since May 7. Add an explicit installation step before running gh aw upgrade/compile. Agent-Logs-Url: https://github.com/dotnet/fsharp/sessions/2b292605-6339-42a4-a857-8cff3d832cc9 Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com> --- .github/workflows/aw-auto-update.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/aw-auto-update.md b/.github/workflows/aw-auto-update.md index 9501d319ba..8ca4e52ee5 100644 --- a/.github/workflows/aw-auto-update.md +++ b/.github/workflows/aw-auto-update.md @@ -63,18 +63,19 @@ You are a maintenance bot that keeps the repository's agentic workflow infrastru Run these steps in order and stop as soon as one tells you to exit: -1. **Upgrade**: Run `gh aw upgrade` to update the gh-aw CLI version and apply any codemods. If the command fails, report the error and exit immediately. -2. **Compile**: Run `gh aw compile` to recompile all workflows. If the command reports errors, report them and exit immediately. -3. **Check for changes**: Run `git diff` to see if anything changed. -4. **If no changes**: Report "Already up to date" and exit immediately. Do not search for PRs, do not run any other commands. -5. **If changes exist**: +1. **Install gh-aw**: If `gh aw --version` fails, install the extension by running `gh extension install github/gh-aw`. If both fail, report the error and exit immediately. +2. **Upgrade**: Run `gh aw upgrade` to update the gh-aw CLI version and apply any codemods. If the command fails, report the error and exit immediately. +3. **Compile**: Run `gh aw compile` to recompile all workflows. If the command reports errors, report them and exit immediately. +4. **Check for changes**: Run `git diff` to see if anything changed. +5. **If no changes**: Report "Already up to date" and exit immediately. Do not search for PRs, do not run any other commands. +6. **If changes exist**: - Check if an open PR titled `[Auto Update] Agentic workflows` already exists (search open PRs). - If a PR exists, push the changes to its branch (`agentics/auto-update-gh-aw`) to update it. Leave a brief comment noting what changed (e.g. "Updated gh-aw-actions/setup from vX to vY"). - If no PR exists, create a new PR from branch `agentics/auto-update-gh-aw` to `main` with title `[Auto Update] Agentic workflows` and a body summarizing the changes. ## Rules -- Only run `gh aw upgrade` and `gh aw compile`. Do **not** run `go` commands, `npm` commands, or any other package manager or build tool. Do **not** attempt to fix dependency resolution errors or edit generated files (go.mod, go.sum, package.json, etc.) manually. +- Only run `gh extension install github/gh-aw`, `gh aw upgrade`, and `gh aw compile`. Do **not** run `go` commands, `npm` commands, or any other package manager or build tool. Do **not** attempt to fix dependency resolution errors or edit generated files (go.mod, go.sum, package.json, etc.) manually. - Only commit changes to files managed by `gh aw`: `.github/workflows/`, `.github/aw/`, `.github/agents/`. - Use a single commit with message: `Update agentic workflows via gh aw upgrade`. - The branch name must always be `agentics/auto-update-gh-aw`.