File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 24
24
steps :
25
25
- name : Checkout code
26
26
uses : actions/checkout@v4
27
+ with :
28
+ ref : ${{ github.event.pull_request.head.ref }}
29
+ repository : ${{ github.event.pull_request.head.repo.full_name }}
27
30
28
31
- name : Set up Python
29
32
uses : actions/setup-python@v5
62
65
uv run scripts/grpc_gen_post_processor.py
63
66
echo "Buf generate finished."
64
67
65
- - name : Create Pull Request with Updates
68
+ - name : Commit changes to current PR
69
+ if : github.event_name == 'pull_request' # Only run this step for pull_request events
70
+ run : |
71
+ git config user.name "a2a-bot"
72
+ git config user.email "a2a-bot@google.com"
73
+ git add ${{ steps.vars.outputs.GENERATED_FILE }} src/a2a/grpc/
74
+ git diff --cached --exit-code || git commit -m "feat: Update A2A types from specification 🤖"
75
+ env :
76
+ GITHUB_TOKEN : ${{ secrets.A2A_BOT_PAT }}
77
+
78
+ - name : Create Pull Request with Updates (for repository_dispatch/workflow_dispatch)
79
+ if : github.event_name != 'pull_request'
66
80
uses : peter-evans/create-pull-request@v6
67
81
with :
68
82
token : ${{ secrets.A2A_BOT_PAT }}
You can’t perform that action at this time.
0 commit comments