From a37f6bcf11d66ce3bbcd290f2554b80c0e2794f3 Mon Sep 17 00:00:00 2001 From: dvelo <52332868+DeveloLongScript@users.noreply.github.com> Date: Thu, 26 Dec 2024 21:35:01 -0600 Subject: [PATCH] Create format.yml --- .github/workflows/format.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/format.yml 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