update-translation-strings.yml 846 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Update translation strings
  2. on: workflow_dispatch
  3. permissions:
  4. contents: read
  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. message: 'Update source translation strings'