@@ -17,39 +17,32 @@ jobs:
1717 - name : Set up Python
1818 uses : actions/setup-python@v6
1919 with :
20- python-version : ' 3.10'
20+ python-version : " 3.10"
2121 - name : Install uv
2222 uses : astral-sh/setup-uv@v7
2323 - name : Configure uv shell
2424 run : echo "$HOME/.cargo/bin" >> $GITHUB_PATH
25- - name : Install dependencies (datamodel-code-generator)
26- run : uv sync --locked
2725 - name : Define output file variable
2826 id : vars
2927 run : |
30- GENERATED_FILE="./src/a2a/types.py "
28+ GENERATED_FILE="./src/a2a/types"
3129 echo "GENERATED_FILE=$GENERATED_FILE" >> "$GITHUB_OUTPUT"
32- - name : Generate types from schema
33- run : |
34- chmod +x scripts/generate_types.sh
35- ./scripts/generate_types.sh "${{ steps.vars.outputs.GENERATED_FILE }}"
3630 - name : Install Buf
3731 uses : bufbuild/buf-setup-action@v1
3832 - name : Run buf generate
3933 run : |
4034 set -euo pipefail # Exit immediately if a command exits with a non-zero status
4135 echo "Running buf generate..."
4236 buf generate
43- uv run scripts/grpc_gen_post_processor.py
4437 echo "Buf generate finished."
4538 - name : Create Pull Request with Updates
4639 uses : peter-evans/create-pull-request@v8
4740 with :
4841 token : ${{ secrets.A2A_BOT_PAT }}
4942 committer : a2a-bot <a2a-bot@google.com>
5043 author : a2a-bot <a2a-bot@google.com>
51- commit-message : ' ${{ github.event.client_payload.message }}'
52- title : ' ${{ github.event.client_payload.message }}'
44+ commit-message : " ${{ github.event.client_payload.message }}"
45+ title : " ${{ github.event.client_payload.message }}"
5346 body : |
5447 Commit: https://github.com/a2aproject/A2A/commit/${{ github.event.client_payload.sha }}
5548 branch : auto-update-a2a-types-${{ github.event.client_payload.sha }}
0 commit comments