Files
workflow-templates/lint-format/eslint/eslint.yml
2026-02-09 11:28:46 +01:00

20 lines
535 B
YAML

name: Lint code using eslint on push
on:
push
jobs:
run_eslint:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
- name: Install packages
run: npm install
- name: Run eslint
run: npm run lint-fix
- name: Push changes back to repository
uses: stefanzweifel/git-auto-commit-action@v7 # or actions/ for my gitea
with:
commit_message: "[skip ci] Run Eslint on push"