Skip to content

[fix/TK-212]:여행 이미지 추가 #433

[fix/TK-212]:여행 이미지 추가

[fix/TK-212]:여행 이미지 추가 #433

name: Prettier Auto Fix
on:
pull_request:
branches:
- dev
paths-ignore:
- '.github/**'
- 'pnpm-lock.yaml'
- 'package.json'
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '21'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Run Prettier
run: pnpm run format
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git status
git add .
git commit -m "chore: apply Prettier formatting" || exit 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Pull latest changes
run: git pull --rebase origin ${{ github.head_ref }}
- name: Push changes
run: git push origin HEAD:${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}