File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 5151 uses : peter-evans/create-pull-request@v7
5252 with :
5353 commit-message : ' [WORKFLOW] Updating protos from ${{ github.event.client_payload.repo_name }}, commit: ${{ github.event.client_payload.sha }}'
54- branch : ' workflow/update-protos '
54+ branch : ' workflow/update-proto '
5555 delete-branch : true
5656 base : main
5757 title : Automated Protos Update
6060 reviewers : njooma
6161 token : ${{ secrets.GIT_ACCESS_TOKEN }}
6262
63- - name : Enable Pull Request Automerge
64- if : steps.cpr.outputs.pull-request-operation == 'created'
65- uses : peter-evans/enable-pull-request-automerge@v3
66- with :
67- token : ${{ secrets.GIT_ACCESS_TOKEN }}
68- pull-request-number : ${{ steps.cpr.outputs.pull-request-number }}
69- merge-method : squash
70-
71- - name : Auto approve
72- if : steps.cpr.outputs.pull-request-operation == 'created'
73- run : gh pr review --approve "${{ steps.cpr.outputs.pull-request-number }}"
74- env :
75- # (TODO ethan) hard to test for sure but it's possible this is insufficient. it's unclear
76- # to me whether an approval from `viambot` is sufficient to satisfy merge requirements.
77- # if not, then this won't work. but that's not particularly bad! it just means we'll still
78- # have to merge by hand, but then we can add `viambot` as a code owner and then automatic
79- # merging will start to work.
80- GH_TOKEN : ${{ secrets.GIT_ACCESS_TOKEN }}
81-
8263 - name : Notify slack of failure
83648465 if : ${{ failure() }}
You can’t perform that action at this time.
0 commit comments