forked from googleapis/nodejs-bigquery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add workflow to update discovery types
- Loading branch information
1 parent
4ebe5da
commit 2757c3c
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
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
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. | ||