Skip to content

Commit

Permalink
Update action.yml for Prettier on YAMLs (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jan 28, 2024
1 parent 948b9ba commit 75d708e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 75d708e

Please sign in to comment.