Skip to content

Commit

Permalink
Update formatter-web.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Gellipapa authored Jan 21, 2024
1 parent 23c196f commit ac3184a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/formatter-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,20 @@ jobs:
run: |
npm install --save-dev prettier
- name: Download centralized style config file
run: curl -s -O https://raw.githubusercontent.com/esx-framework/.github/main/.github/actions/.prettierrc.json

- name: Check prettier code format
id: check-prettier-format
if: ${{ inputs.any-changed-files-list == 'true' }}
run: |
npx prettier --check ${{ inputs.all-changed-files-list }}
npx prettier --config .prettierrc --check ${{ inputs.all-changed-files-list }}
continue-on-error: true

- name: Format changed files with Prettier
if: ${{ inputs.any-changed-files-list == 'true' && steps.check-prettier-format.outcome == 'failure' }}
run: |
npx prettier --write ${{ inputs.all-changed-files-list }}
npx prettier --config .prettierrc --write ${{ inputs.all-changed-files-list }}
- name: Generate formatted files list
id: generate-formatted-list
Expand Down

0 comments on commit ac3184a

Please sign in to comment.