| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- name: Update translation strings
- on:
- schedule:
- - cron: '0 5 * * *'
- workflow_dispatch:
- permissions:
- contents: write
- env:
- LOCALE: "en"
- jobs:
- makemessages:
- if: github.repository == 'netbox-community/netbox'
- runs-on: ubuntu-latest
- env:
- NETBOX_CONFIGURATION: netbox.configuration_testing
- steps:
- - name: Create app token
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
- id: app-token
- with:
- app-id: 1076524
- private-key: ${{ secrets.HOUSEKEEPING_SECRET_KEY }}
- - name: Check out repo
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- token: ${{ steps.app-token.outputs.token }}
- - name: Set up Python
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
- with:
- python-version: 3.12
- - name: Install system dependencies
- run: sudo apt install -y gettext
- - name: Install Python dependencies
- run: |
- python -m pip install --upgrade pip
- pip install -r requirements.txt
- - name: Run makemessages
- run: python netbox/manage.py makemessages -l ${{ env.LOCALE }}
- - name: Commit changes
- uses: EndBug/add-and-commit@cc9c08ba6c8df3b93a8f2db63e89b98368ae2ae8 # v11.1.1
- with:
- add: 'netbox/translations/'
- default_author: github_actions
- message: 'Update source translation strings'
|