Update UniMagic 実務ガイド―「職員」業務ガイドライン(担任、副担任).md #29
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: 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 }} |