Skip to content

Add notes

Add notes #892

Workflow file for this run

name: Auto format md and mdx files
on:
push:
branches:
- '**'
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn install --frozen-lockfile
- run: yarn format
- name: Check for changes
id: changes
run: |
git diff --quiet || echo "changed=true" >> $GITHUB_OUTPUT
- name: Commit and push formatted files
if: steps.changes.outputs.changed == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -am "CI: Automatic .md and .mdx formatting"
git push