Skip to content

sync-protos

sync-protos #317

Workflow file for this run

name: sync-protos
on:
workflow_dispatch:
schedule:
- cron: '0 */6 * * *' # every 6 hours.
jobs:
build:
name: Sync protos to clients
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
- name: Clone relations-api repo
run: git clone --depth=1 https://github.com/project-kessel/relations-api.git
- name: Copy proto files
run: |
cp -r relations-api/api/kessel/relations/v1/*.proto src/main/proto/kessel/relations/v1/
cp -r relations-api/api/kessel/relations/v1beta1/*.proto src/main/proto/kessel/relations/v1beta1/
rm -rf relations-api/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Sync updated proto files'
title: Update protos