Update Discovery Generated Types #48
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
on: | |
schedule: | |
- cron: '0 12 * * TUE' | |
workflow_dispatch: | |
name: Update Discovery Generated Types | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: 16 | |
# Install all deps, including dev dependencies. | |
- run: npm install | |
# Generate types | |
- run: npm run types | |
# Install samples deps | |
- run: cd samples/ && npm install && cd ../ | |
# Fix formatting | |
- run: npm run fix | |
# Submit pull request | |
- uses: googleapis/code-suggester@v4 | |
env: | |
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }} | |
with: | |
command: pr | |
upstream_owner: googleapis | |
upstream_repo: nodejs-bigquery | |
description: 'Automated pull-request to keep BigQuery Discovery types up-to-date.' | |
title: 'chore: update types from Discovery' | |
message: 'chore: update types from Discovery' | |
branch: update-discovery-patch | |
git_dir: '.' | |
fork: true | |
force: true |