Skip to content

Commit

Permalink
ci: add workflow to update discovery types
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarowolfx committed Jan 22, 2024
1 parent 4ebe5da commit 2757c3c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/discovery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
schedule:
- cron: '0 12 * * TUE'
name: Update Discovery Generated Types
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
# Install all deps, including dev dependencies.
- run: npm install
# Generate types
- run: npm run types
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
add-paths: src/types.d.ts
commit-message: "chore: update types from Discovery"
title: "chore: update types from Discovery"
body: |
Automated pull-request to keep BigQuery Discovery types up-to-date.

0 comments on commit 2757c3c

Please sign in to comment.