-
Notifications
You must be signed in to change notification settings - Fork 211
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 #1366
ci: automate discovery types #1366
Conversation
on: | ||
schedule: | ||
- cron: '0 12 * * TUE' | ||
pull_request: # REMOVE BEFORE MERGING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pull_request: # REMOVE BEFORE MERGING | |
pull_request: # REMOVE BEFORE MERGING |
Does this need to be removed now?
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these get updated by dependabot or renovate bot? Wanting to make sure we're not adding a manual maintenance step of updating
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
with: | ||
node-version: 16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for this version about maintenance
"execa": "^5.0.0", | ||
"extend": "^3.0.2", | ||
"gaxios": "^6.0.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these be dev dependencies instead of dependencies we're having the user add?
'Automated pull-request to keep BigQuery Discovery types up-to-date.'; | ||
|
||
async function submitDiscoveryPR() { | ||
const statusResult = await execa('git', ['status', '--porcelain']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL git status porcelain! 😁
await execa('git', ['config', 'user.email', 'yoshi-automation@google.com']); | ||
await execa('git', ['config', 'user.name', 'Yoshi Automation']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sofisl just checking this is our most up to date git username and email
Towards internal b/309836530