forked from yandex-cloud/python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.06 KB
/
genproto.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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