Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: automate discovery types #1372

Merged
merged 43 commits into from
Jun 5, 2024
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2757c3c
ci: add workflow to update discovery types
alvarowolfx Jan 22, 2024
3f39f50
ci: make discovery workflow temp trigger on PR
alvarowolfx Jan 22, 2024
02a1154
fix: use main branch as base
alvarowolfx Jan 22, 2024
34cb456
fix: update types script to keep license header
alvarowolfx Jan 22, 2024
5162b72
ci: update branch name
alvarowolfx Jan 22, 2024
afb4bb9
Merge branch 'main' into ci-automate-discovery-types
alvarowolfx May 14, 2024
af93438
chore: update actions versions
alvarowolfx May 14, 2024
5edee9b
ci: remove pr trigger
alvarowolfx May 23, 2024
cbd9462
Merge branch 'main' into ci-automate-discovery-types
alvarowolfx May 23, 2024
94ca295
fix: remove package.json change
alvarowolfx May 24, 2024
1e989ae
ci: use commit hash on gha
alvarowolfx May 31, 2024
6a5889a
Merge branch 'main' into ci-automate-discovery-types
alvarowolfx May 31, 2024
8ddc849
ci: change to run daily
alvarowolfx Jun 3, 2024
0ce8210
ci: move away from external action to create PR
alvarowolfx Jun 3, 2024
032b51c
fix: lint issues
alvarowolfx Jun 3, 2024
7966a79
ci: add dev deps
alvarowolfx Jun 3, 2024
96a792c
ci: update deps to older version
alvarowolfx Jun 3, 2024
f6abb66
ci: temp enable to run on PR
alvarowolfx Jun 3, 2024
b0ce38c
fix: set up git user ealier
alvarowolfx Jun 3, 2024
b4997bd
test: set personal fork
alvarowolfx Jun 3, 2024
d39ccf0
ci: validate that pr exists
alvarowolfx Jun 3, 2024
53661f9
fix: remove checkout main
alvarowolfx Jun 3, 2024
b094d54
fix: remove checkout main
alvarowolfx Jun 3, 2024
5cf7d65
ci: set main repo
alvarowolfx Jun 3, 2024
7d54344
ci: change to weekly sync
alvarowolfx Jun 4, 2024
ce7b21a
ci: change github token env
alvarowolfx Jun 4, 2024
95d4239
ci: add comment on line to remove on workflow
alvarowolfx Jun 4, 2024
13b1da4
ci: add github token back
alvarowolfx Jun 4, 2024
11a7ea9
fix: move execa/gaxios as dev deps
alvarowolfx Jun 4, 2024
fa6f5ca
ci: move to GITHUB_TOKEN
alvarowolfx Jun 4, 2024
f8ba462
ci: force set GITHUB_ACTION env
alvarowolfx Jun 4, 2024
260b2f3
ci: submitted PR should use main as base branch
alvarowolfx Jun 4, 2024
b325af3
fix: use YOSHI_CODE_BOT_TOKEN token
alvarowolfx Jun 4, 2024
9611cfc
fix: use bearer token
alvarowolfx Jun 4, 2024
1911ac6
ci: move pr submission to in house code-suggester
alvarowolfx Jun 4, 2024
1bf2e84
ci: temp enable to run on PR
alvarowolfx Jun 4, 2024
b36d1d6
ci: change branch name
alvarowolfx Jun 4, 2024
55982cb
cleanup: remove unused submit pr code and PR trigger
alvarowolfx Jun 4, 2024
39c3cda
fix: run linter after generating types
alvarowolfx Jun 4, 2024
30e117e
ci: install samples deps
alvarowolfx Jun 4, 2024
95a62d5
ci: force branch update
alvarowolfx Jun 4, 2024
82e089a
cleanup: remove PR trigger
alvarowolfx Jun 4, 2024
5edd3f1
Merge branch 'main' into ci-automate-discovery-types
alvarowolfx Jun 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
alvarowolfx marked this conversation as resolved.
Show resolved Hide resolved
# 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
Loading