Skip to content

fix: update Prettier workflow to create PRs for protected main #800

fix: update Prettier workflow to create PRs for protected main

fix: update Prettier workflow to create PRs for protected main #800

Workflow file for this run

name: Prettier Format
on:
pull_request_target:
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:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
- name: Run Prettier
uses: creyD/[email protected]
with:
prettier_options: --write "**/*.{js,ts,tsx,jsx,json,css,md,yml,yaml}"
only_changed: true
- 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."