mirror of https://github.com/dapr/docs.git
Merge pull request #1908 from berndverst/patch-6
Link Validation: Microsoft Docs links must not be localized
This commit is contained in:
commit
38818eaf1c
|
@ -16,6 +16,16 @@ jobs:
|
||||||
PYTHON_VER: 3.7
|
PYTHON_VER: 3.7
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- name: Check Microsoft URLs do not pin localized versions
|
||||||
|
run: |
|
||||||
|
localized=$(find . -name '*.md' | xargs grep -ol "\.microsoft\.com/[[:alpha:]]\{2\}-[[:alpha:]]\{2\}/") || true
|
||||||
|
if [ -z "$localized" ]; then
|
||||||
|
echo "All Microsoft Docs links ok."
|
||||||
|
else
|
||||||
|
echo "The following files contain links to Microsoft Docs that pin a localized version:"
|
||||||
|
echo $localized
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
- name: Set up Python ${{ env.PYTHON_VER }}
|
- name: Set up Python ${{ env.PYTHON_VER }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
|
@ -27,3 +37,4 @@ jobs:
|
||||||
- name: Check Markdown Files
|
- name: Check Markdown Files
|
||||||
run: |
|
run: |
|
||||||
for name in `find . -name "*.md"`; do echo -e "------\n$name" ; mm.py -l $name || exit 1 ;done
|
for name in `find . -name "*.md"`; do echo -e "------\n$name" ; mm.py -l $name || exit 1 ;done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue