Generate Web API Index #117
This file contains hidden or 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: Generate Web API Index | |
| on: | |
| # Weekly on Sunday at 00:00 UTC | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| # Or execute manually from UI | |
| workflow_dispatch: | |
| jobs: | |
| generate-web-api-index: | |
| name: Generate Web API Index | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install pnpm | |
| run: npm install -g pnpm@10 | |
| - name: Install | |
| run: pnpm install | |
| - name: Update @mdn/browser-compat-data | |
| run: pnpm update @mdn/[email protected] | |
| - name: Execute Generation Script | |
| run: | | |
| pnpm generateWebApiIndex | |
| - name: Commit and push changes | |
| run: | | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "github-actions" | |
| ./scripts/commit_web_api_changes.sh |