diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..5e32b30 --- /dev/null +++ b/.github/workflows/format.yml @@ -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