ci: Run pre-commit only on whitelisted files
This commit is contained in:
@@ -31,7 +31,7 @@ jobs:
|
|||||||
GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt;
|
GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt;
|
||||||
curl https://pre-commit.com/install-local.py | python3 -
|
curl https://pre-commit.com/install-local.py | python3 -
|
||||||
script:
|
script:
|
||||||
SKIP=shellcheck pre-commit run --all-files;
|
pre-commit run --files `cat clean_files.txt`;
|
||||||
|
|
||||||
- <<: *native_job
|
- <<: *native_job
|
||||||
name: Ubuntu 16.04
|
name: Ubuntu 16.04
|
||||||
|
|||||||
0
clean_files.txt
Normal file
0
clean_files.txt
Normal file
Reference in New Issue
Block a user