-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 866 Bytes
/
format.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Setup Biome CLI
uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome format --write ./src
- name: Push to GitHub
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Automatically format code commited
commit_user_name: Format Bot
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>