From 52d7c26af649558c3533aa6768065ef83dcf84f8 Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Thu, 6 Apr 2023 18:53:08 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20Do=20not=20write=20Docker=20pull=20logs?= =?UTF-8?q?=20in=20fixed=20file=20if=20no=20yq=20and=20yq=20imag=E2=80=A6?= =?UTF-8?q?=20(#10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/renovate.json5 | 6 ++---- hooks/yq_yaml_prettier.sh | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 4e13cd8..632adfd 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,6 +1,4 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "local>SpotOnInc/renovate-config" - ] + $schema: "https://docs.renovatebot.com/renovate-schema.json", + extends: ["local>SpotOnInc/renovate-config"], } diff --git a/hooks/yq_yaml_prettier.sh b/hooks/yq_yaml_prettier.sh index da90815..94bb355 100755 --- a/hooks/yq_yaml_prettier.sh +++ b/hooks/yq_yaml_prettier.sh @@ -50,6 +50,10 @@ function check_is_deps_installed { exit 1 fi + # Prevent "Docker pull logs" added to fixed file. + # https://github.com/SpotOnInc/pre-commit-yq/issues/9 + docker pull mikefarah/yq:4 > /dev/null + function yq { docker run --rm -i -v "${PWD}":/workdir mikefarah/yq:4 "$@" }