awesome-copilot icon indicating copy to clipboard operation
awesome-copilot copied to clipboard

Fix Learning Hub update workflow

Open aaronpowell opened this issue 5 months ago • 1 comments

Summary

The Learning Hub update workflow is currently broken and not keeping content in sync.

Workflow links

  • Workflow definition: https://github.com/github/awesome-copilot/blob/staged/.github/workflows/learning-hub-updater.md
  • GitHub run list: https://github.com/github/awesome-copilot/actions/workflows/learning-hub-updater.lock.yml

Scope

  • Diagnose root cause in the current workflow
  • Repair update logic and supporting workflow configuration
  • Validate expected content update behavior end-to-end
  • Document any required environment/config updates

Acceptance criteria

  • Workflow completes successfully on staged
  • Learning Hub updates are generated/applied as expected
  • Failures provide actionable errors (no silent failures)
  • Documentation is updated for any changed setup/behavior

Parent

Part of #2076

aaronpowell avatar Jun 22 '26 00:06 aaronpowell

Resolved by #2092 (gh-aw v0.72.1 → v0.80.9 upgrade, merged to staged and promoted to main).

Root cause: under gh-aw v0.72.1 the safe_outputs job failed (Failed to apply bundle when applying the agent-generated git bundle), and the source was missing permissions: contents: read. The upgrade recompiles the workflow to v0.80.9 and the .md source gains the read permission.

Evidence — production fix (before → after, same schedule@main trigger):

Run When (UTC) Compiler Result
27985173675 2026-06-22 21:27 v0.72.1 (sha 3e36d367) ❌ failure
28057417256 2026-06-23 21:11 v0.80.9 (sha 3304e8e1) ✅ success

The first scheduled production run on the upgraded code passed (18 of the prior 20 runs were failures). I verified the lock at each sha: failing run = v0.72.1, winning run = v0.80.9.

Acceptance criteria:

  • ✅ Workflow completes successfully — proven on the production schedule above.
  • ✅ Learning Hub updates generated/applied as expected — dispatch validation 27993538293 (all jobs incl safe_outputs) produced a correct update PR; its content was fact-checked against the copilot-cli changelog (version numbers and config keys all accurate).
  • ✅ No silent failures — the safe_outputs step now succeeds rather than erroring on bundle apply.
  • ✅ Config documented — permissions: contents: read added to learning-hub-updater.md in #2092.

Closing as completed.

ayangupt avatar Jun 24 '26 16:06 ayangupt