This repository was archived by the owner on Mar 6, 2026. It is now read-only.
sync-protos #2012
This file contains hidden or 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: 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/relationships/*.proto src/main/proto/kessel/inventory/v1beta1/relationships/ | |
| cp -r inventory-api/api/kessel/inventory/v1beta1/resources/*.proto src/main/proto/kessel/inventory/v1beta1/resources/ | |
| cp -r inventory-api/api/kessel/inventory/v1beta1/authz/*.proto src/main/proto/kessel/inventory/v1beta1/authz/ | |
| cp -r inventory-api/api/kessel/inventory/v1beta2/*.proto src/main/proto/kessel/inventory/v1beta2/ | |
| rm -rf inventory-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 | |