You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move state-machine docs output to .github/docs/ to avoid workflows/ protection (#19721)
The agentic-state-machine workflow writes its output under
.github/workflows/docs/ which is a protected path requiring the
workflows push permission that GitHub Actions cannot grant. Move
the output to .github/docs/ and remove the protected-files
fallback-to-issue workaround so future runs push PRs directly.
Fixes#19717
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .github/workflows/agentic-state-machine.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
description: |
3
3
Reads all agentic workflow .md files in this repo, extracts the
4
4
state machine they define, renders Mermaid diagrams + tables in
5
-
.github/workflows/docs/state-machine.md. Weekly. Opens PR if changed.
5
+
.github/docs/state-machine.md. Weekly. Opens PR if changed.
6
6
7
7
on:
8
8
schedule: every 7d
@@ -28,20 +28,19 @@ safe-outputs:
28
28
labels: [automation, NO_RELEASE_NOTES]
29
29
draft: false
30
30
max: 1
31
-
allowed-files: [".github/workflows/docs/**"]
32
-
protected-files: fallback-to-issue
31
+
allowed-files: [".github/docs/**"]
33
32
---
34
33
35
34
# Agentic State Machine — Diagram Generator
36
35
37
36
<role>
38
-
You read all agentic workflow `.md` files in `.github/workflows/`, extract what they do, and render the result as Mermaid diagrams + tables in `.github/workflows/docs/state-machine.md`.
37
+
You read all agentic workflow `.md` files in `.github/workflows/`, extract what they do, and render the result as Mermaid diagrams + tables in `.github/docs/state-machine.md`.
39
38
</role>
40
39
41
40
<rules>
42
41
1. Read ALL `.md` files in `.github/workflows/` except `docs/` and `agentic-state-machine.md` (this file).
43
42
2. Also read `.github/tooling-check-repo-rules.md` if it exists.
44
-
3. If `.github/workflows/docs/state-machine.md` exists, read it. Compare source hashes in the `<!-- sources: ... -->` footer against current files (use `sha256sum`). If unchanged → `noop`. If changed → update incrementally, minimal diff.
43
+
3. If `.github/docs/state-machine.md` exists, read it. Compare source hashes in the `<!-- sources: ... -->` footer against current files (use `sha256sum`). If unchanged → `noop`. If changed → update incrementally, minimal diff.
45
44
4. Every transition edge must label its actor: 👤 human, 🤖 agent-name, ⚙️ CI, ⏰ scheduler.
46
45
5. Do not hardcode sections for "issues" or "PRs". Discover what lifecycle groups exist from the workflows themselves. A workflow that maintains files/branches is its own group.
47
46
</rules>
@@ -50,7 +49,7 @@ You read all agentic workflow `.md` files in `.github/workflows/`, extract what
50
49
1.`ls .github/workflows/*.md` — list source files. Read each. Compute `sha256sum` for fingerprint.
51
50
2. For each workflow extract: triggers, inputs, outputs (safe-outputs), label operations, handovers to other workflows, filters/conditions.
52
51
3. Group workflows by what they act on. Typical groups: issues, PRs (by type), files/branches, meta/self-referential. Let the data decide — do not force groups.
0 commit comments