Add notes #892
Workflow file for this run
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: 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 |