Files
actions/biome-fix/action.yml

39 lines
919 B
YAML

---
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
name: Biome Fix
description: Run Biome fix on the repository
author: Ismo Vuorinen
branding:
icon: check-circle
color: green
runs:
using: composite
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set Git Config
uses: ivuorinen/actions/set-git-config@main
- name: Node Setup
uses: ivuorinen/actions/node-setup@main
- name: Install Dependencies
shell: bash
run: |
npm install -g biome
- name: Run Biome Fix
shell: bash
run: |
biome fix .
- name: Push Fixes
if: success()
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
with:
commit_message: 'style: autofix Biome violations'
add_options: '-u'