Metadata refresh #442
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
name: Metadata refresh | |
on: | |
schedule: | |
- cron: 0 3 * * 1-6 | |
workflow_dispatch: | |
jobs: | |
get-metadata: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 17 | |
- run: sudo apt-get update && sudo apt-get install -y git | |
- run: yarn install --frozen-lockfile | |
- run: yarn run build:data:metadata | |
env: | |
GH_API_CONCURRENCY_LIMIT: ${{secrets.GH_API_CONCURRENCY_LIMIT}} | |
GH_API_USERNAME: ${{secrets.GH_API_USERNAME}} | |
GH_API_TOKEN: ${{secrets.GH_API_TOKEN}} | |
- run: yarn run build:site | |
env: | |
HOSTED_AT: ${{secrets.HOSTED_AT}} | |
- run: git config --global user.name "Tooling Builder" | |
- run: git config --global user.email "[email protected]" | |
- run: | | |
git add docs/categories | |
git commit -a -m "chore: Metadata build (updates to OpenAPI tooling metadata and site rebuild)" | |
git push origin main |