Update creyD/prettier_action action to v4.5 #62
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: Formatter | |
| on: | |
| push: | |
| jobs: | |
| prettier: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Format code | |
| uses: creyD/[email protected] | |
| with: | |
| prettier_options: --write **/*.{md,js,html,css} | |
| same_commit: false | |
| commit_message: "[CI] Format Code!" | |
| commit_description: "Format code using Prettier" | |
| github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} |