Changed prettier workflow to actually apply changes #828
Workflow file for this run
This file contains 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 code formatter | |
on: | |
pull_request: | |
branches: | |
- master | |
- main | |
push: | |
branches: | |
- master | |
- main | |
jobs: | |
format: | |
# available images: https://github.com/actions/runner-images#available-images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run Prettier 💅🏽 | |
uses: AbdulRehman-1/pr-prettier@initial | |
with: | |
only_changed: true | |
prettier_options: --write **/*.{css,html,js,json,liquid,md,scss,yaml,yml} | |
prettier_plugins: "@shopify/prettier-plugin-liquid" |