Generate code from cloudapi proto files #1081
This file contains 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: 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: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
# Install a specific version of uv. | |
version: "0.5.8" | |
enable-cache: true | |
- 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 '[email protected]' | |
git add yandex cloudapi | |
git commit -m 'feat: regenerate proto' || echo "No changes in .proto files found" | |
git push |