Skip to content

Commit

Permalink
Add prettier-plugins step back in
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Jan 18, 2024
1 parent bf063b2 commit c293337
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/simple-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ jobs:
if: ${{ inputs.prettierPlugins }}
uses: Andrews-McMeel-Universal/cache-yarn-install@v1

- name: Set prettier plugin arguments
id: prettier-plugins
if: ${{ inputs.prettierPlugins }}
run: |
for PLUGIN in ${{ inputs.prettierPlugins }}; do
PRETTIER_PLUGINS="$PRETTIER_PLUGINS --plugin $PLUGIN"
done
echo "prettierPlugins=$PRETTIER_PLUGINS" >> $GITHUB_OUTPUT
- name: Check if .prettierrc.js file exists
id: prettier-config-js
uses: andstor/file-existence-action@v2
Expand All @@ -47,7 +56,7 @@ jobs:
if: ${{ steps.prettier-config-js.outputs.files_exists == 'true' }}
uses: creyD/prettier_action@v4.3
with:
prettier_options: --write . --ignore-path ./.prettierignore --config ./.prettierrc.js
prettier_options: --write . --ignore-path ./.prettierignore --config ./.prettierrc.js ${{ steps.prettier-plugins.outputs.prettierPlugins }}
prettier_plugins: ${{ inputs.prettierPlugins }}
commit_message: "[Simple Linter] Apply prettier changes"
only_changed: true
Expand All @@ -56,7 +65,7 @@ jobs:
if: ${{ steps.prettier-config-json.outputs.files_exists == 'true' }}
uses: creyD/prettier_action@v4.3
with:
prettier_options: --write . --ignore-path ./.prettierignore --config ./.prettierrc.json
prettier_options: --write . --ignore-path ./.prettierignore --config ./.prettierrc.json ${{ steps.prettier-plugins.outputs.prettierPlugins }}
prettier_plugins: ${{ inputs.prettierPlugins }}
commit_message: "[Simple Linter] Apply prettier changes"
only_changed: true
Expand Down

0 comments on commit c293337

Please sign in to comment.