mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 03:23:59 +00:00
feat: add GitHub Actions workflows for code quality and automation (#2)
This commit is contained in:
57
pre-commit/README.md
Normal file
57
pre-commit/README.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# ivuorinen/actions/pre-commit
|
||||
|
||||
## pre-commit
|
||||
|
||||
### Description
|
||||
|
||||
Runs pre-commit on the repository and pushes the fixes back to the repository
|
||||
|
||||
### Inputs
|
||||
|
||||
| name | description | required | default |
|
||||
| ------------------- | ------------------------------------- | -------- | --------------------------- |
|
||||
| `pre-commit-config` | <p>pre-commit configuration file</p> | `false` | `.pre-commit-config.yaml` |
|
||||
| `base-branch` | <p>Base branch to compare against</p> | `false` | `""` |
|
||||
| `token` | <p>GitHub Token</p> | `false` | `${{ github.token }}` |
|
||||
| `commit_user` | <p>Commit user</p> | `false` | `GitHub Actions` |
|
||||
| `commit_email` | <p>Commit email</p> | `false` | `github-actions@github.com` |
|
||||
|
||||
### Runs
|
||||
|
||||
This action is a `composite` action.
|
||||
|
||||
### Usage
|
||||
|
||||
```yaml
|
||||
- uses: ivuorinen/actions/pre-commit@main
|
||||
with:
|
||||
pre-commit-config:
|
||||
# pre-commit configuration file
|
||||
#
|
||||
# Required: false
|
||||
# Default: .pre-commit-config.yaml
|
||||
|
||||
base-branch:
|
||||
# Base branch to compare against
|
||||
#
|
||||
# Required: false
|
||||
# Default: ""
|
||||
|
||||
token:
|
||||
# GitHub Token
|
||||
#
|
||||
# Required: false
|
||||
# Default: ${{ github.token }}
|
||||
|
||||
commit_user:
|
||||
# Commit user
|
||||
#
|
||||
# Required: false
|
||||
# Default: GitHub Actions
|
||||
|
||||
commit_email:
|
||||
# Commit email
|
||||
#
|
||||
# Required: false
|
||||
# Default: github-actions@github.com
|
||||
```
|
||||
Reference in New Issue
Block a user