Run pre-commit independently you are running on a PR or a branch.
| Name | Description | Required | Default |
|---|---|---|---|
clean-checkout |
Whether to execute git clean -ffdx && git reset --hard HEAD before fetching |
false |
true |
python-version |
What Python version to use | false |
3.11 |
on:
pull_request: ~
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: elastic/oblt-actions/pre-commit@v1