s2-proto-update #1
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 | |
permissions: | |
contents: write | |
pull-requests: write | |
on: | |
repository_dispatch: | |
types: [s2-proto-update] | |
jobs: | |
generate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Update Submodules | |
id: submodules | |
uses: sgoudham/[email protected] | |
with: | |
submodules: proto | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
- uses: arduino/setup-task@v2 | |
with: | |
version: 3.40.x | |
- uses: arduino/setup-protoc@v3 | |
with: | |
version: 29.x | |
- name: Setup protoc | |
run: | | |
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | |
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | |
- name: build protos | |
run: | | |
task gen | |
- name: Create Pull Request | |
if: ${{ steps.submodules.outputs['proto--updated'] }} | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
committer: s2-helper[bot] <194906454+s2-helper[bot]@users.noreply.github.com> | |
author: s2-helper[bot] <194906454+s2-helper[bot]@users.noreply.github.com> | |
title: chore - proto update | |
branch: "proto/update-s2-protos-${{ steps.submodules.outputs['proto--latestShortCommitSha'] }}" | |
body: ${{ steps.submodules.outputs.prBody }} |