-
Notifications
You must be signed in to change notification settings - Fork 390
49 lines (47 loc) · 1.73 KB
/
codegen.yaml
File metadata and controls
49 lines (47 loc) · 1.73 KB
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
45
46
47
48
49
on:
schedule:
# daily at 12:30 am
- cron: '30 0 * * *'
workflow_dispatch:
name: codegen
jobs:
discovery:
uses: googleapis/discovery-artifact-manager/.github/workflows/list-services.yml@master
generate:
runs-on: ubuntu-latest
needs: discovery
strategy:
fail-fast: false
max-parallel: 4
matrix:
service: ${{fromJson(needs.discovery.outputs.services)}}
steps:
- run: echo generating ${{ matrix.service }}
- uses: actions/checkout@v2
with:
fetch-depth: 1
path: google-api-java-client-services
- uses: actions/checkout@v2
with:
repository: googleapis/discovery-artifact-manager
fetch-depth: 1
path: discovery-artifact-manager
- uses: actions/setup-python@v2
with:
python-version: 2.7.18
- run: ./google-api-java-client-services/.github/workflows/generate.sh ${{ matrix.service }}
- uses: googleapis/code-suggester@v2 # takes the changes from git directory
env:
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
with:
command: pr
upstream_owner: ${{ github.repository_owner }}
upstream_repo: google-api-java-client-services
description: 'Generated in GitHub action: https://github.com/${{ github.repository_owner }}/${{ github.repository }}/actions/workflows/codegen.yaml'
title: 'chore: regenerate ${{ matrix.service }} client'
message: 'chore: regenerate ${{ matrix.service }} client'
branch: regenerate-${{ matrix.service }}
git_dir: 'google-api-java-client-services/clients/google-api-services-${{ matrix.service }}'
primary: main
force: true
fork: true