Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
27 lines
660 B
YAML
27 lines
660 B
YAML
---
|
|
# https://github.com/creyD/prettier_action
|
|
name: Prettier markdown files
|
|
|
|
on: # yamllint disable-line rule:truthy
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
prettier-md:
|
|
if: github.repository == 'dev-sec/ansible-collection-hardening'
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 1
|
|
|
|
steps:
|
|
- name: Git checkout
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
|
with:
|
|
ref: ${{ github.head_ref }}
|
|
|
|
- name: Prettify code
|
|
uses: creyD/prettier_action@31355f8eef017f8aeba2e0bc09d8502b13dbbad1 # v4.3
|
|
with:
|
|
prettier_options: --write {**/*,*}.md
|