Rename CH.JPG to CH.jpg #432
Workflow file for this run
This file contains hidden or 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 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 }} |