--- # 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-22.04 timeout-minutes: 1 steps: - name: Git checkout uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 with: ref: ${{ github.head_ref }} - name: Prettify code uses: creyD/prettier_action@8c18391fdc98ed0d884c6345f03975edac71b8f0 # v4.6 with: prettier_options: --write {**/*,*}.md