Skip to content

Generate code from cloudapi proto files #860

Generate code from cloudapi proto files

Generate code from cloudapi proto files #860

Workflow file for this run

name: Generate code from cloudapi proto files
on:
workflow_dispatch:
schedule:
# Runs "At 04:00" (see https://crontab.guru)
- cron: '0 4 * * *'
jobs:
genproto:
runs-on: ubuntu-latest
# disallows two or more release jobs to run in parallel
concurrency: genproto
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.YANDEX_CLOUD_BOT_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Generate code from proto
run: |
make submodule
make deps-genproto
make proto
make deps
make tox
git config --global user.name 'Yandex.Cloud Bot'
git config --global user.email 'ycloud-bot@yandex.ru'
git add yandex cloudapi
git commit -m 'regenerate proto' || echo "No changes in .proto files found"
git push