docs: readme updates #127
This file contains 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: Format Code | |
on: [push, pull_request] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4.2.2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: 'latest' | |
- name: Install dependencies | |
run: bun install | |
- name: Run format | |
run: bun format | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v5.0.1 | |
with: | |
commit_message: 'chore: format code' |