Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements in translations workflow #6634

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install Trubar
run: |
Expand Down Expand Up @@ -44,10 +46,16 @@ jobs:
echo "::endgroup::"
fi
done
echo "-------------------------------"
trubar stat new.jaml
echo "-------------------------------"
if [ -f Missing.jaml ] || [ -f Obsolete.jaml ]
then
echo "### Missing or obsolete translations" >> $GITHUB_STEP_SUMMARY
echo "::error::Missing or obsolete translations"
echo "Run 'trubar collect -s Orange i18n/si.jaml'"
echo "and see the changes in the message file, i18n/si.jaml"
exit 1
else
echo "### All translations are up to date" >> $GITHUB_STEP_SUMMARY
fi
Loading