File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff 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
5047branding :
5148 icon : ' search'
You can’t perform that action at this time.
0 commit comments