Skip to content

Update 5期要項.md #28

Update 5期要項.md

Update 5期要項.md #28

name: PR Format
on:
pull_request:
branches:
- master
paths:
- "**/*.md"
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm install
- name: Run Prettier format
run: npx prettier --write "./**/*.md"
- name: Check for changes
id: git_diff
run: |
git diff --exit-code || echo "changes"
- uses: stefanzweifel/[email protected]
if: steps.git_diff.outputs.changes == 'changes'
with:
commit_message: Apply Prettier Change
ref: ${{ github.head_ref }}