Log 02: 24 Oct 2024 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prettier Check | |
on: | |
pull_request: | |
paths: | |
- "**/*.md" | |
jobs: | |
prettier-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' # or the version your project uses | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Prettier check | |
run: npx prettier --check "**/*.md" | |
- name: Report formatting issues | |
if: failure() | |
run: echo "Some Markdown files are not properly formatted. Please run Prettier locally and commit the changes." |