Skip to content

Commit

Permalink
Merge branch 'main' into owl-bot-update-lock-68e1cece0d6d3336c4f1cb9d…
Browse files Browse the repository at this point in the history
…2857b020af5574dff6da6349293d1c6d4eea82d8
  • Loading branch information
alvarowolfx authored Jun 6, 2024
2 parents 67adecb + ca8a495 commit 1d39e6f
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 14 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/discovery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
schedule:
- cron: '0 12 * * TUE'
workflow_dispatch:
name: Update Discovery Generated Types
jobs:
sync:
runs-on: ubuntu-latest
env:
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
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@v2
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
5 changes: 5 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
"""This script is used to synthesize generated parts of this library."""

import synthtool.languages.node as node
from synthtool import shell

node.owlbot_main(templates_excludes=['.github/bug-report.md'])

# Regenerate Discovery types.
shell.run(('npm','run','types'))
node.fix()
Loading

0 comments on commit 1d39e6f

Please sign in to comment.