Create format.yml

This commit is contained in:
dvelo 2024-12-26 21:35:01 -06:00 committed by GitHub
parent 2b97ed4529
commit a37f6bcf11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

20
.github/workflows/format.yml vendored Normal file

@ -0,0 +1,20 @@
name: Format MHSF using Biomejs
on: [pull_request_target, issues]
jobs:
format:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Setup Biome CLI
uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome format ./src
- name: Push to GitHub
uses: stefanzweifel/git-auto-commit-action@v5