Skip to content

.github/workflows/update-apis.yaml #1323

.github/workflows/update-apis.yaml

.github/workflows/update-apis.yaml #1323

Workflow file for this run

on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
update-apis:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 14
- 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 }}