/
githubmirror
/
ydb-dotnet-genproto
Обзор
Документация
Войти
/
githubmirror
/
ydb-dotnet-genproto
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/codegen.yml
56 строк
1 KB
XmasApple
add seconds to date
13 окт 2023, 14:40
13 окт 2023, 14:40
d11660c
Код
Авторство
О чём код?
name: codegen on: workflow_dispatch: inputs: checkout: description: 'Branch or commit of ydb-api-protos' required: true default: 'master' type: string permissions: contents: write jobs: codegen: runs-on: ubuntu-latest defaults: run: shell: bash env: GITHUB_TOKEN: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }} steps: - name: Checkout uses: actions/checkout@v3 with: token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }} fetch-depth: 0 submodules: 'true' - name: Set env run: echo "today=$(date +%Y%m%d_%H%m%S)" >> $GITHUB_ENV - name: Git Submodule Update run: | git pull --recurse-submodules git submodule update --remote --recursive cd ydb-api-protos git checkout ${{ inputs.checkout }} cd .. - name: Run Codegen run: bash .github/scripts/regenerate.sh - name: Create PR id: generate-grpc uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }} branch: autopr/${{ inputs.checkout }}${{ env.today }} delete-branch: true commit-message: 'Update grpc methods' title: 'Update grpc methods' body: | Regenerate grpc methods - Auto-generated labels: | automated pr # assignees: # reviewers: