Add autofix for root Markdown

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2021-06-22 10:37:00 +02:00
parent fc295bcc05
commit ffddba6f42
+11 -1
View File
@@ -43,12 +43,22 @@ jobs:
run: yarn install --frozen-lockfile
# End of yarn setup
- name: Run Prettier
- name: Run Prettier on docs
uses: creyD/prettier_action@v3.1
with:
# Modifies commit only if prettier autofixed a Markdown file
prettier_options: --config docs/prettier.config.js --write docs/**/*.md
only_changed: true
commit_message: "Autofix documentation Markdown files using Prettier"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Prettier on root
uses: creyD/prettier_action@v3.1
with:
# Modifies commit only if prettier autofixed a Markdown file
prettier_options: --write *.md
only_changed: true
commit_message: "Autofix Markdown files using Prettier"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}