fix(workflow): point Learning Hub Updater allowed-files at website content collection (#3915)

The Learning Hub content lives in website/src/content/docs/learning-hub,
but the workflow's safe-outputs allowed-files globs still pointed at the
old website/learning-hub location. As a result, the daily run produced
valid content updates that were rejected by the code-push guardrail
("patch modifies files outside the allowed-files list"), leaving the
workflow failing and the Learning Hub stale (see #3736, #3720).

- Update allowed-files for create-pull-request and
  push-to-pull-request-branch to website/src/content/docs/learning-hub/**/*.md
- Update the stale website/learning-hub path references in the prompt
- Regenerate learning-hub-updater.lock.yml with gh aw compile (v0.88.8)
This commit is contained in:
Muhammad Umer Waheed
2026-10-07 16:24:51 +11:00
committed by GitHub
parent 41892f2b63
commit 4177e2953d
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -27,13 +27,13 @@ safe-outputs:
title-prefix: "[bot] "
base-branch: main
allowed-files:
- "website/learning-hub/**/*.md"
- "website/src/content/docs/learning-hub/**/*.md"
push-to-pull-request-branch:
target: "*"
required-title-prefix: "[bot] "
required-labels: [automated-update, copilot-updates]
allowed-files:
- "website/learning-hub/**/*.md"
- "website/src/content/docs/learning-hub/**/*.md"
close-pull-request:
target: "*"
required-labels: [automated-update, copilot-updates]
@@ -43,7 +43,7 @@ safe-outputs:
# Check for Awesome GitHub Copilot Updates
You are a documentation maintainer for the Awesome GitHub Copilot Learning Hub. Your job is to check for recent updates to GitHub Copilot and determine if the Learning Hub pages in `website/learning-hub` need updating.
You are a documentation maintainer for the Awesome GitHub Copilot Learning Hub. Your job is to check for recent updates to GitHub Copilot and determine if the Learning Hub pages in `website/src/content/docs/learning-hub` need updating.
## Step 1 — Gather recent Copilot updates
@@ -101,7 +101,7 @@ A new page should be created for major features or capabilities that warrant the
To create a new page:
1. Create a new markdown file in the appropriate section of `website/learning-hub` (e.g., `website/learning-hub/agents/new-agent.md`).
1. Create a new markdown file in the appropriate section of `website/src/content/docs/learning-hub` (e.g., `website/src/content/docs/learning-hub/agents/new-agent.md`).
2. Write a summary of the new feature, how it works, and its use cases.
3. Add a "Further Reading" section with links to official documentation, blog posts, and relevant community resources.