Removed pre-commit action
I should always run pre-commit locally and currently this just takes to long to run.
This commit is contained in:
parent
23e78fe5a7
commit
88e31699ad
|
@ -1,31 +0,0 @@
|
|||
name: Check
|
||||
on:
|
||||
push:
|
||||
branches: "**"
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Run checks
|
||||
runs-on: ubuntu-latest
|
||||
container: git.huizinga.dev/dreaded_x/pre-commit:master
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||
id: get-hash
|
||||
with:
|
||||
patterns: |-
|
||||
.pre-commit-config.yaml
|
||||
|
||||
- name: set PY
|
||||
run: echo "PY=$(python -VV | sha256sum | cut -d ' ' -f1)" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pre-commit
|
||||
key: pre-commit|${{ env.PY }}|${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: Run pre-commit
|
||||
run: SKIP=sqlx-prepare pre-commit run --show-diff-on-failure --color=always --all-files
|
||||
shell: bash
|
Loading…
Reference in New Issue
Block a user