Skip to content

Commit

Permalink
RHCLOUD-33054 - Pipeline to sync protos (#26)
Browse files Browse the repository at this point in the history
* Pipeline to sync protos from relations-api

Signed-off-by: Jonathan Marcantonio <[email protected]>

* Allow for manual trigger & run less often

Signed-off-by: Jonathan Marcantonio <[email protected]>

---------

Signed-off-by: Jonathan Marcantonio <[email protected]>
  • Loading branch information
lennysgarage authored Aug 29, 2024
1 parent 003d676 commit e58a5ce
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sync-protos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: sync-protos

on:
workflow_dispatch:
schedule:
- cron: '0 */6 * * *' # every 6 hours.


jobs:
build:
name: Sync protos to clients
runs-on: ubuntu-latest
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/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Sync updated proto files'
title: Update protos

0 comments on commit e58a5ce

Please sign in to comment.