Skip to content

Commit

Permalink
add workflow for formatting md code
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthkoole committed May 21, 2024
1 parent b2ef507 commit 0fe2aed
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Format md files

on:
pull_request:
branches:
- main
- release

jobs:
prettier:
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 }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0

- name: Prettify code
uses: creyD/[email protected]
with:
# This part is also where you can pass other options, for example:
prettier_options: --write **/*.md

0 comments on commit 0fe2aed

Please sign in to comment.