ci: ignore snap and docker files for rust check
This commit is contained in:
parent
ab9c371edb
commit
269d7c10eb
@ -15,7 +15,7 @@ case $CI_COMMIT_REF_NAME in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
export RUST_FILES_MODIFIED="$(git --no-pager diff --name-only $GIT_COMPARE...$CI_COMMIT_SHA | grep -v -e ^\\. -e ^LICENSE -e ^README.md -e ^CHANGELOG.md -e ^test.sh -e ^scripts/ -e ^docs/ | wc -l | tr -d ' ')"
|
export RUST_FILES_MODIFIED="$(git --no-pager diff --name-only $GIT_COMPARE...$CI_COMMIT_SHA | grep -v -e ^\\. -e ^LICENSE -e ^README.md -e ^CHANGELOG.md -e ^test.sh -e ^scripts/ -e ^docs/ -e ^docker/ -e ^snap/ | wc -l | tr -d ' ')"
|
||||||
echo "RUST_FILES_MODIFIED: $RUST_FILES_MODIFIED"
|
echo "RUST_FILES_MODIFIED: $RUST_FILES_MODIFIED"
|
||||||
|
|
||||||
if [ "${RUST_FILES_MODIFIED}" = "0" ]
|
if [ "${RUST_FILES_MODIFIED}" = "0" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user