From 75d708ee96ae5b5bb64508cfc2c0c7e734b6bcd3 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 28 Jan 2024 20:27:49 +0100 Subject: [PATCH] Update action.yml for Prettier on YAMLs (#68) --- action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 3cdc75ac..352c03e2 100644 --- a/action.yml +++ b/action.yml @@ -112,8 +112,14 @@ runs: if: inputs.prettier == 'true' && github.event.action != 'closed' run: | npm install --global prettier - npx prettier \ - --write "**/*.{js,jsx,ts,tsx,css,less,scss,json,md,mdx,yml,yaml,html,vue,svelte}" + # npx prettier --write "**/*.{js,jsx,ts,tsx,css,less,scss,json,md,mdx,yml,yaml,html,vue,svelte}" + find . \( \ + -name "*.yml" \ + -o -name "*.yaml" \ + \) \ + ! -path "./docs/*" \ + ! -path "./.github/workflows/*" \ + -exec npx prettier --write {} + shell: bash continue-on-error: true