• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15on:
16  workflow_dispatch:
17  schedule:
18  # every morning
19  - cron: '0 1 * * *'
20name: readme
21jobs:
22  update:
23    runs-on: ubuntu-latest
24    if: github.repository_owner == 'googleapis'
25    steps:
26    - uses: actions/checkout@v2
27    - uses: actions/setup-python@v4
28      with:
29        python-version: '3.7'
30        architecture: 'x64'
31    - run: python3 -m pip install --require-hashes -r .github/requirements.txt
32    - run: python3 generate-readme.py
33    - uses: googleapis/code-suggester@v4
34      env:
35        ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
36      with:
37        command: pr
38        upstream_owner: googleapis
39        upstream_repo: google-cloud-java
40        description: 'ran python3 generate-readme.py'
41        title: 'chore: regenerate client table in README'
42        message: 'chore: regenerate client table in README'
43        branch: update-readme
44        primary: main
45        force: true
46        git_dir: '.'
47