2
0

update-translation-strings.yml 961 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: Update translation strings
  2. on:
  3. schedule:
  4. - cron: '0 5 * * *'
  5. workflow_dispatch:
  6. permissions:
  7. contents: write
  8. env:
  9. LOCALE: "en"
  10. jobs:
  11. makemessages:
  12. runs-on: ubuntu-latest
  13. env:
  14. NETBOX_CONFIGURATION: netbox.configuration_testing
  15. steps:
  16. - name: Check out repo
  17. uses: actions/checkout@v4
  18. - name: Set up Python
  19. uses: actions/setup-python@v5
  20. with:
  21. python-version: 3.11
  22. - name: Install system dependencies
  23. run: sudo apt install -y gettext
  24. - name: Install Python dependencies
  25. run: |
  26. python -m pip install --upgrade pip
  27. pip install -r requirements.txt
  28. - name: Run makemessages
  29. run: python netbox/manage.py makemessages -l ${{ env.LOCALE }}
  30. - name: Commit changes
  31. uses: EndBug/add-and-commit@v9
  32. with:
  33. add: 'netbox/translations/'
  34. default_author: github_actions
  35. message: 'Update source translation strings'