Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHCLOUD-34945 - Add pipeline to sync protos #5

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/sync-protos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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 inventory-api repo
run: git clone --depth=1 https://github.com/project-kessel/inventory-api.git
- name: Copy proto files
run: |
cp -r inventory-api/api/kessel/inventory/v1/*.proto src/main/proto/kessel/inventory/v1/
cp -r inventory-api/api/kessel/inventory/v1beta1/*.proto src/main/proto/kessel/inventory/v1beta1/
rm -rf inventory-api/
- 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

Adam0Brien marked this conversation as resolved.
Show resolved Hide resolved