Skip to content

Update pages

Update pages #3844

Workflow file for this run

on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
push:
branches:
- main
name: Update pages
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Setup environment
run: npm install
- name: checkout webref repo
run: git clone --depth 1 -b curated https://github.com/w3c/webref.git
- name: Generate pages
run: node _tools/generate-pages.js
- name: Commit updates
run: |
git config user.name "fetch-info bot"
git config user.email "<>"
git add -A
git commit -m "Automatic update" -a || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: "main"