Skip to content

Log 02: 24 Oct 2024

Log 02: 24 Oct 2024 #2

Workflow file for this run

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."