|
1 | 1 | name: Update A2A Schema from Specification |
2 | 2 |
|
3 | 3 | on: |
4 | | - schedule: |
5 | | - - cron: "0 0 * * *" # Runs daily at 00:00 UTC |
| 4 | + repository_dispatch: |
| 5 | + types: [a2a_json_update] |
6 | 6 | workflow_dispatch: |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - check_and_update: |
| 9 | + generate_and_pr: |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | permissions: |
12 | 12 | contents: write |
|
19 | 19 | - name: Set up Python |
20 | 20 | uses: actions/setup-python@v5 |
21 | 21 | with: |
22 | | - python-version: "3.13" |
| 22 | + python-version: "3.10" |
23 | 23 |
|
24 | 24 | - name: Install uv |
25 | 25 | run: curl -LsSf https://astral.sh/uv/install.sh | sh |
@@ -61,20 +61,17 @@ jobs: |
61 | 61 | --use-standard-collections |
62 | 62 | echo "Codegen finished." |
63 | 63 |
|
64 | | - - name: Create Pull Request if generated file changed |
| 64 | + - name: Create Pull Request with Updates |
65 | 65 | uses: peter-evans/create-pull-request@v6 |
66 | 66 | with: |
67 | 67 | token: ${{ secrets.A2A_BOT_PAT }} |
68 | | - committer: a2a-bot <[email protected]> |
69 | | - author: a2a-bot <[email protected]> |
70 | | - commit-message: "chore: 🤖 Auto-update A2A schema from specification" |
71 | | - title: "chore: 🤖 Auto-update A2A Schema from Specification" |
| 68 | + committer: "a2a-bot <[email protected]>" |
| 69 | + author: "a2a-bot <[email protected]>" |
| 70 | + commit-message: "chore: 🤖Auto-update A2A types from google/A2A@${{ github.event.client_payload.sha }}" |
| 71 | + title: "chore: 🤖 Auto-update A2A types from google/A2A" |
72 | 72 | body: | |
73 | | - This PR automatically updates the A2A schema types based on the latest specification. |
74 | | -
|
75 | | - This update was triggered by the scheduled workflow run. |
76 | | - See the workflow run details: [${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) |
77 | | - branch: "a2a-schema-update" |
| 73 | + This PR updates `src/a2a/types.py` based on the latest `specification/json/a2a.json` from [google/A2A](https://github.com/google/A2A/commit/${{ github.event.client_payload.sha }}). |
| 74 | + branch: "auto-update-a2a-types-${{ github.event.client_payload.sha }}" |
78 | 75 | base: main |
79 | 76 | labels: | |
80 | 77 | automated |
|
0 commit comments