update-translation-strings.yml 886 B

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