name: Polyfills documentation

on:
  pull_request:
    paths:
      - 'README.md'
      - '.browserslistrc'
      - '.eslintrc.json'

jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 1

      - uses: actions/setup-node@v4
        with:
          node-version: 20

      - name: Check Polyfills documentation and settings sync
        run: node .github/actions-scripts/polyfills-sync.cjs
