Skip to content

Commit 0eaa855

Browse files
committed
ci: consolidate Agent Core target documentation
1 parent 9e425a5 commit 0eaa855

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Consolidate Agent Core Target Document
2+
3+
on:
4+
push:
5+
branches:
6+
- agent/consolidate-agent-core-target-doc
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
concurrency:
13+
group: consolidate-agent-core-target-doc
14+
cancel-in-progress: true
15+
16+
jobs:
17+
consolidate:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 20
20+
21+
steps:
22+
- name: Checkout branch
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
ref: agent/consolidate-agent-core-target-doc
27+
28+
- name: Set up Python 3.12
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: "3.12"
32+
33+
- name: Consolidate documentation
34+
run: |
35+
python tools/scripts/consolidate_agent_core_target_docs.py
36+
git diff --check -- '*.py' '*.yaml' '*.yml'
37+
38+
- name: Run focused validation
39+
run: |
40+
python -m py_compile \
41+
tools/scripts/verify_agent_core_target_protocols.py \
42+
tests/repo/test_agent_core_target_protocols.py \
43+
.agent/scripts/verify_agent_system.py
44+
python tools/scripts/verify_agent_core_target_protocols.py
45+
python .agent/scripts/verify_agent_system.py
46+
47+
- name: Commit consolidated documentation
48+
run: |
49+
rm tools/scripts/consolidate_agent_core_target_docs.py
50+
rm .github/workflows/consolidate-agent-core-target-doc.yml
51+
git config user.name "github-actions[bot]"
52+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
53+
git add -A
54+
git commit -m "docs: consolidate Agent Core target architecture"
55+
git push origin HEAD:agent/consolidate-agent-core-target-doc

0 commit comments

Comments
 (0)