Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2e8040a

Browse files
committedApr 9, 2025·
z
1 parent 082e8c1 commit 2e8040a

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed
 

‎.github/workflows/update_protos.yml

+2-22
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Update Protos + Open PR
22

33
on:
44
workflow_dispatch:
5-
pull_request:
65
repository_dispatch:
76
types:
87
- protos-updated
@@ -36,8 +35,8 @@ jobs:
3635

3736
- name: Store API version
3837
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"
4140
4241
- name: Generate buf
4342
run: uv run make buf
@@ -61,25 +60,6 @@ jobs:
6160
reviewers: njooma
6261
token: ${{ secrets.GIT_ACCESS_TOKEN }}
6362

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-
8363
- name: Notify slack of failure
8464
uses: slackapi/slack-github-action@v1.24.0
8565
if: ${{ failure() }}

0 commit comments

Comments
 (0)
Please sign in to comment.