diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml new file mode 100644 index 000000000..ec248e54d --- /dev/null +++ b/.github/workflows/update-docs.yml @@ -0,0 +1,29 @@ +name: Lint Pull Requests + +on: [push, pull_request] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '18' + + - name: Checkout + uses: actions/checkout@v4 + + - name: Install npm dependencies + run: npm install + + - name: Build documentation + run: npm run lint + + - name: Auto-commit fixes + uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions + add: "['docs/']"