protos-updated #440
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Protos + Open PR | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: | |
- protos-updated | |
jobs: | |
update-protos: | |
if: github.repository_owner == 'viamrobotics' | |
runs-on: [self-hosted, x64] | |
container: | |
image: ghcr.io/viamrobotics/canon:amd64 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: bufbuild/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Generate buf | |
run: make buf | |
- name: Add + Commit + Open PR | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
commit-message: '[WORKFLOW] Updating protos from ${{ github.event.client_payload.repo_name }}, commit: ${{ github.event.client_payload.sha }}' | |
branch: 'origin/update-protos' | |
delete-branch: true | |
title: Automated Protos Update | |
body: This is an auto-generated PR to update proto definitions. Check the commits to see which repos and commits are responsible for the changes | |
assignees: npmenard,stuqdog | |
reviewers: npmenard,stuqdog |