fix: update Prettier workflow to create PRs for protected main #798
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 Format | |
| on: | |
| push: | |
| branches-ignore: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| prettier: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Prettier | |
| uses: creyD/[email protected] | |
| with: | |
| prettier_options: --write "**/*.{js,ts,tsx,jsx,json,css,md,yml,yaml}" | |
| - name: Create Pull Request with Prettier fixes | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| branch: prettier-fixes | |
| commit-message: "chore: Prettier fixes" | |
| title: "Prettier fixes" | |
| body: "This PR contains Prettier formatting changes." | |