forked from googleapis/google-api-nodejs-client
-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (26 loc) · 962 Bytes
/
update-apis.yaml
File metadata and controls
27 lines (26 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
update-apis:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v6
with:
node-version: 22
- run: gh repo fork googleapis/google-api-nodejs-client --fork-name google-api-nodejs-client-autodisco --clone --remote
env:
GH_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
- run: gh repo sync yoshi-code-bot/google-api-nodejs-client-autodisco --force
env:
GH_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
- run: npm install
working-directory: ./google-api-nodejs-client-autodisco
- run: npm run update-disclaimers
working-directory: ./google-api-nodejs-client-autodisco
- run: npm run submit-prs
working-directory: ./google-api-nodejs-client-autodisco
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CODE_BOT_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}