CON-2277 Create new subject and audit for play-with-containers-py
based on JS version
#182
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: π GA-Misc - Check-Prettier | |
on: | |
pull_request: | |
paths-ignore: | |
- '.github/**' | |
branches: [master] | |
jobs: | |
GA-Misc-Check-Prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 # OR "2" -> To retrieve the preceding commit. | |
- name: Get all changed *.md file(s) | |
id: changed-md | |
run: | | |
echo "changed_files=$(git diff --name-only --merge-base master | grep "\.md$" | xargs)" >> $GITHUB_OUTPUT | |
- name: Run step if any *.md file(s) changed | |
if: steps.changed-md.outputs.changed_files != '' | |
run: | | |
npm i -g prettier | |
npx prettier -c ${{ steps.changed-md.outputs.changed_files }} |