Files
actions/eslint-fix/action.yml
renovate[bot] e3b436adb3 feat(github-action): update actions/checkout (v4.2.2 → v4.3.0) (#213)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-18 09:43:18 +00:00

39 lines
922 B
YAML

---
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
name: ESLint Fix
description: Fixes ESLint violations in a project.
author: 'Ismo Vuorinen'
branding:
icon: 'code'
color: 'blue'
runs:
using: composite
steps:
- name: Checkout Repository
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- 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
- name: Run ESLint Fix
shell: bash
run: |
npx eslint . --fix
- name: Push Fixes
if: always()
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
with:
commit_message: 'style: autofix ESLint violations'
add_options: '-u'