Skip to content

Commit

Permalink
ci(pre-commit): Use GitHub Actions to run pre-commit (#185)
Browse files Browse the repository at this point in the history
pre-commit.ci has a size limit.
  • Loading branch information
5ouma authored Dec 6, 2024
1 parent d5fc27e commit 0416d44
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml → .github/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
ci:
autofix_commit_msg: |
chore(fix): Auto fixes from pre-commit.com hooks
For more information, see https://pre-commit.ci.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 🚸 pre-commit

on:
push:
branches: [main]
pull_request:

jobs:
pre-commit:
runs-on: Ubuntu-Latest

steps:
- name: 🚸 Run pre-commit
uses: 5ouma/utils/pre-commit@23aec800e821891339568c454135bb9befe36fce # main
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<br />
[![CI](https://img.shields.io/github/actions/workflow/status/5ouma/opml-generator/ci.yml?label=ci&style=flat-square)](https://github.com/5ouma/opml-generator/actions/workflows/ci.yml)
[![Release](https://img.shields.io/github/actions/workflow/status/5ouma/opml-generator/release.yml?label=release&style=flat-square)](https://github.com/5ouma/opml-generator/actions/workflows/release.yml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/5ouma/opml-generator/main.svg?style=flat-square)](https://results.pre-commit.ci/latest/github/5ouma/opml-generator/main)
[![pre-commit](https://img.shields.io/github/actions/workflow/status/5ouma/opml-generator/pre-commit.yml?label=pre-commit&style=flat-square)](https://github.com/5ouma/opml-generator/actions/workflows/pre-commit.yml)
[![codecov](https://codecov.io/github/5ouma/opml-generator/graph/badge.svg)](https://codecov.io/github/5ouma/opml-generator)

</div>
Expand Down

0 comments on commit 0416d44

Please sign in to comment.