-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configures "l10n" GitHub Actions workflow for nightly translation sync
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: l10n | ||
on: | ||
# Run nightly at midnight UTC. | ||
schedule: | ||
- cron: "0 0 * * *" | ||
# Also allow manual invocation. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-translation-catalogs: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Check out securedrop-client | ||
uses: actions/checkout@v2 | ||
- name: Set Git identity | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Install dependencies | ||
run: pip install --require-hashes -r requirements/dev-requirements.txt | ||
- name: Update translation catalogs | ||
run: make update-translation-catalogs | ||
- name: Update list of supported languages | ||
run: make supported-languages | ||
- name: Push | ||
run: git push |