Skip to content

Commit f2d3ed4

Browse files
Fail if requirements are not met
1 parent e5f4abb commit f2d3ed4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/python-doc-translation.yml renamed to .github/workflows/switcher-requirements-progress.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,24 @@ jobs:
6363
cd translation-repo
6464
potodo | tee ../potodo-results.txt
6565
66+
- name: Verify requirements are met
67+
run: |
68+
cd translation-repo
69+
if grep -q "functions.po" ../potodo-results.txt; then
70+
echo "library/functions.po is not fully translated"
71+
exit 1
72+
fi
73+
74+
if grep -q "bugs.po" ../potodo-results.txt; then
75+
echo "bugs.po is not fully translated"
76+
exit 1
77+
fi
78+
79+
if ! grep -q "# tutorial (100% done)" ../potodo-results.txt; then
80+
echo "tutorial/* is not fully translated"
81+
exit 1
82+
fi
83+
6684
- name: Upload potodo results
6785
uses: actions/upload-artifact@v4
6886
with:

0 commit comments

Comments
 (0)