File tree 1 file changed +2
-22
lines changed
1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ name: Update Protos + Open PR
2
2
3
3
on :
4
4
workflow_dispatch :
5
- pull_request :
6
5
repository_dispatch :
7
6
types :
8
7
- protos-updated
36
35
37
36
- name : Store API version
38
37
run : |
39
- uv run python3 etc/_update_version_metadata.py src/viam/version_metadata.py v0.1.425
40
- echo "Updated API version to v0.1.425 in src/viam/version_metadata.py"
38
+ uv run python3 etc/_update_version_metadata.py src/viam/version_metadata.py ${{ github.event.client_payload.tag }}
39
+ echo "Updated API version to ${{ github.event.client_payload.tag }} in src/viam/version_metadata.py"
41
40
42
41
- name : Generate buf
43
42
run : uv run make buf
61
60
reviewers : njooma
62
61
token : ${{ secrets.GIT_ACCESS_TOKEN }}
63
62
64
- - name : Enable Pull Request Automerge
65
- if : steps.cpr.outputs.pull-request-operation == 'created'
66
- uses : peter-evans/enable-pull-request-automerge@v3
67
- with :
68
- token : ${{ secrets.GIT_ACCESS_TOKEN }}
69
- pull-request-number : ${{ steps.cpr.outputs.pull-request-number }}
70
- merge-method : squash
71
-
72
- - name : Auto approve
73
- if : steps.cpr.outputs.pull-request-operation == 'created'
74
- run : gh pr review --approve "${{ steps.cpr.outputs.pull-request-number }}"
75
- env :
76
- # (TODO ethan) hard to test for sure but it's possible this is insufficient. it's unclear
77
- # to me whether an approval from `viambot` is sufficient to satisfy merge requirements.
78
- # if not, then this won't work. but that's not particularly bad! it just means we'll still
79
- # have to merge by hand, but then we can add `viambot` as a code owner and then automatic
80
- # merging will start to work.
81
- GH_TOKEN : ${{ secrets.REPO_READ_TOKEN }}
82
-
83
63
- name : Notify slack of failure
84
64
uses : slackapi/slack-github-action@v1.24.0
85
65
if : ${{ failure() }}
You can’t perform that action at this time.
0 commit comments