Skip to content

Update TMX

Update TMX #40

Workflow file for this run

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