Merge pull request #1205 from Zeit-Labs/shadinaif/glob-pattern #14
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
# This workflow runs fix-transifex-resource-names.py nightly | |
name: Set the openedx-translations to readable resource names | |
on: | |
workflow_dispatch: # by request | |
push: # after adding repositories to the openedx-translations repo | |
branches: [ main ] | |
paths: | |
- 'transifex.yml' | |
- '.github/workflows/extract-translation-source-files.yml' | |
schedule: # Also run monthly just in case there's a stall slug/name update | |
- cron: '0 0 1 * *' | |
jobs: | |
python-translations: | |
runs-on: ubuntu-latest | |
steps: | |
# Clones the openedx-translations repo | |
- name: clone openedx/openedx-translations | |
uses: actions/checkout@v3 | |
# Sets up Python | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
# Run the script | |
- name: Fix transifex automatic resource names | |
env: | |
TRANSIFEX_API_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }} | |
run: | | |
make transifex_resources_requirements | |
make fix_transifex_resource_names |