mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-09 20:37:45 +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
|
- name: Run Biome formatter
|
||||||
run: pnpm biome format . --write
|
run: pnpm biome format . --write
|
||||||
|
|
||||||
- name: Commit changes if needed
|
- name: AutoFix
|
||||||
run: |
|
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user