CI: Avoid cloning the submodules for the linter pipeline

This commit is contained in:
Sameer Rahmani 2023-02-04 00:45:09 +00:00
parent a2862bb667
commit 7ee1cda15e
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
1 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,15 @@
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1
lfs: false
recursive: false
pipeline:
Linters:
image: beta.devheroes.codes/serene/ci:6
commands:
- ./builder setup
- export FILES="$(git diff --name-only HEAD HEAD~1)"
- pre-commit --files "$FILES"
- pre-commit run --files "$FILES"