Generate code from cloudapi proto files #860
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: 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 |