Skip to content

Commit 72b99b5

Browse files
Fix pattern (#5)
1 parent 9e27606 commit 72b99b5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

action.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,15 @@ runs:
3434
- name: Installing Prettier
3535
id: prettier-install
3636
shell: bash
37-
run: npm install --global prettier@${{ inputs.prettier_version }}
37+
run: |
38+
npm install --global prettier@${{ inputs.prettier_version }}
39+
echo "prettier version: $(prettier --version)"
3840
3941
- name: Running Prettier
4042
id: prettier-run
4143
shell: bash
42-
run: echo "prettier-output=$(prettier --list-different --config ${{ inputs.config_path }} --ignore-path ${{ inputs.ignore_path }} --no-error-on-unmatched-pattern ${{ inputs.file_pattern }})" >> $GITHUB_OUTPUT
43-
44-
- name: Fail On Error
45-
id: fail-on-error
46-
if: steps.prettier-run.outputs.prettier-output != 0 && steps.prettier-run.outputs.prettier-output != '' && inputs.fail_on_error
47-
shell: bash
48-
run: exit 1
44+
run: |
45+
prettier --check --config ${{ inputs.config_path }} --ignore-path ${{ inputs.ignore_path }} --no-error-on-unmatched-pattern "${{ inputs.file_pattern }}"
4946
5047
branding:
5148
icon: 'search'

0 commit comments

Comments
 (0)