mirror of
https://github.com/ivuorinen/actions.git
synced 2026-03-05 05:54:55 +00:00
feat: add GitHub Actions workflows for code quality and automation (#2)
This commit is contained in:
17
biome-fix/README.md
Normal file
17
biome-fix/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# ivuorinen/actions/biome-fix
|
||||
|
||||
## Biome Fix
|
||||
|
||||
### Description
|
||||
|
||||
Run Biome fix on the repository
|
||||
|
||||
### Runs
|
||||
|
||||
This action is a `composite` action.
|
||||
|
||||
### Usage
|
||||
|
||||
```yaml
|
||||
- uses: ivuorinen/actions/biome-fix@main
|
||||
```
|
||||
38
biome-fix/action.yml
Normal file
38
biome-fix/action.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
# 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@v4
|
||||
|
||||
- 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@v5
|
||||
with:
|
||||
commit_message: 'style: autofix Biome violations'
|
||||
add_options: '-u'
|
||||
Reference in New Issue
Block a user