Skip to content

Commit 73fe0d0

Browse files
authored
ci: Add dispatch-a2a-update Action for when a2a.json is updated (#634)
- This allows triggering of the types.py generation in google/a2a-python - Requirement for a2aproject/a2a-python#92
1 parent b2fd987 commit 73fe0d0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Dispatch A2A JSON Update
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "specification/json/a2a.json"
9+
10+
jobs:
11+
dispatch:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Dispatch repository_dispatch to a2a-python
15+
uses: peter-evans/repository-dispatch@v3
16+
with:
17+
token: ${{ secrets.A2A_BOT_PAT }}
18+
repository: google/a2a-python
19+
event-type: a2a_json_update
20+
client-payload: |
21+
{
22+
"ref": "${{ github.ref }}",
23+
"sha": "${{ github.sha }}",
24+
"message": "Updated 'specification/json/a2a.json' in google/A2A"
25+
}

0 commit comments

Comments
 (0)