Compare commits

...

5 Commits

Author SHA1 Message Date
dvelo
8ebf2bf9e1
Update format.yml 2024-12-26 21:48:13 -06:00
dvelo
d98c1f0847
Update format.yml 2024-12-26 21:46:45 -06:00
dvelo
3b579f3ada
Update format.yml 2024-12-26 21:39:56 -06:00
dvelo
5ecd68b426
Update format.yml 2024-12-26 21:36:45 -06:00
dvelo
a37f6bcf11
Create format.yml 2024-12-26 21:35:01 -06:00

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

@ -0,0 +1,38 @@
name: Format MHSF using Biomejs
# Trigger on new commits
on:
push:
branches: '**'
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: Clone MHSF
uses: GuillaumeFalourd/clone-github-repo-action@v2.3
with:
depth: 1
branch: 'main'
owner: 'DeveloLongScript'
repository: 'MHSF'
- name: Access cloned repository content
run: |
cd MHSF
- name: Run Biome CI
run: biome ci
- name: Run Biome
run: biome format --write ./src
- name: Push to GitHub
uses: stefanzweifel/git-auto-commit-action@v5