Adding Gambit Communications Inc. MIMIC NETFLOW simulator integration and marketplace (ECOINT-37) #4295
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: Check markdown partials | |
# Checks for invalid markdown partials | |
on: | |
pull_request: | |
paths: | |
- '**/*.md' | |
jobs: | |
changed-files: | |
runs-on: ubuntu-latest | |
outputs: | |
md: ${{ steps.changes.outputs.md }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Output changed files | |
id: changes | |
run: >- | |
echo "::set-output name=md::$( | |
git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | | |
grep .md$ | | |
xargs | |
)" | |
- name: Check for invalid partials | |
run: | | |
echo ${{ steps.changed-files.outputs.md }} | |
python .github/workflows/check_partials.py --files='${{ steps.changes.outputs.md }}' |