Skip to content

Commit

Permalink
chore: replace prettier workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maneike committed Nov 19, 2024
1 parent 71af0f5 commit a41081a
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
name: Prettier Check on Merge
name: Prettify on Merge

on:
push:
branches:
- main
pull_request_target:
types:
- closed

jobs:
prettier:
if: ${{ github.event.pull_request.merged == true }}
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
# Ensure the branch being merged is checked out
ref: ${{ github.event.pull_request.head.ref }}

- name: Prettify code
uses: creyD/[email protected]
with:
# Specify which files or directories to format
prettier_options: --write ./packages/core/**/* ./packages/cli/**/*

# Optionally set the working directory if needed
# working_directory: ./ # Uncomment and adjust if your setup requires a specific directory

0 comments on commit a41081a

Please sign in to comment.