Skip to content

Update Protos + Open PR #292

Update Protos + Open PR

Update Protos + Open PR #292

Workflow file for this run

name: Update Protos + Open PR
on:
workflow_dispatch:
inputs:
api_version:
description: 'The version number of the API in buf.build'
type: string
required: true
repository_dispatch:
types:
- protos-updated
jobs:
update-protos:
if: github.repository_owner == 'viamrobotics'
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Update API
if: ${{ !inputs.api_version }} # called from outside
run: |
echo ${{ github.event.client_payload.tag }} > api_version.lock
- name: Update API
if: ${{ inputs.api_version }} # called manually
run: |
echo ${{ inputs.api_version }} > api_version.lock
- name: Add + Commit + Open PR
uses: peter-evans/create-pull-request@v7
with:
commit-message: '[WORKFLOW] Updating protos from ${{ github.event.client_payload.repo_name }}, commit: ${{ github.event.client_payload.sha }}'
branch: 'workflow/update-protos'
delete-branch: true
base: main
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
team-reviewers: sdk-netcode