mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-06 04:19:37 +00:00
chore(workflow): replace manual commit step with AutoFix action for Biome formatting
This commit is contained in:
10
.github/workflows/biome.yml
vendored
10
.github/workflows/biome.yml
vendored
@@ -29,11 +29,5 @@ jobs:
|
||||
- name: Run Biome formatter
|
||||
run: pnpm biome format . --write
|
||||
|
||||
- name: Commit changes if needed
|
||||
run: |
|
||||
BRANCH=$(echo "${{ github.head_ref || github.ref_name }}")
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
git add .
|
||||
git diff --quiet && git diff --staged --quiet || git commit -m "chore: auto-format with Biome"
|
||||
git push origin HEAD:$BRANCH --force
|
||||
- name: AutoFix
|
||||
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
|
||||
|
||||
Reference in New Issue
Block a user