From 90f076176a1ecc4193614294d4cecffaf97f53c3 Mon Sep 17 00:00:00 2001 From: Mira Ressel Date: Wed, 22 Feb 2023 17:18:47 +0100 Subject: [PATCH] [ci] provide git clean filter to format pipeline specs --- .gitattributes | 2 ++ scripts/ci/gitlab/prettier.sh | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100755 scripts/ci/gitlab/prettier.sh diff --git a/.gitattributes b/.gitattributes index 9bd26362b0e87..1762f1a04d802 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,3 @@ Cargo.lock linguist-generated=true +/.gitlab-ci.yml filter=ci-prettier +/scripts/ci/gitlab/pipeline/*.yml filter=ci-prettier diff --git a/scripts/ci/gitlab/prettier.sh b/scripts/ci/gitlab/prettier.sh new file mode 100755 index 0000000000000..299bbee179dca --- /dev/null +++ b/scripts/ci/gitlab/prettier.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# meant to be installed via +# git config filter.ci-prettier.clean "scripts/ci/gitlab/prettier.sh" + +prettier --parser yaml