Update TMX #48
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: Update TMX | |
on: | |
schedule: | |
- cron: '0 0 1 * *' # Run on the first day of the month | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install Python dependencies | |
run: | | |
pip install -r .github/scripts/requirements.txt | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: Download TMX for all locales | |
run: | | |
python .github/scripts/download_tmx.py | |
- name: Commit updates | |
run : | | |
git config user.name 'flodolo' | |
git config user.email '[email protected]' | |
git add . | |
git commit -m "Update TMX from Pontoon (${{ steps.date.outputs.date }})" | |
git push |