Skip to content

Pull Request Validator #2

Pull Request Validator

Pull Request Validator #2

Workflow file for this run

name: Prettier check
run-name: Pull Request Validator
on:
pull_request:
jobs:
cpr:
runs-on: ubuntu-latest
steps:
- name: Run Prettier
id: prettier-run
uses: rutajdash/[email protected]
with:
config_path: ./.prettierrc.yml
# This step only runs if prettier finds errors causing the previous step to fail
# This steps lists the files where errors were found
- name: Prettier Output
if: ${{ failure() }}
shell: bash
run: |
echo "The following files are not formatted:"
echo "${{steps.prettier-run.outputs.prettier_output}}"