crowdin.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Crowdin
  2. on:
  3. schedule:
  4. - cron: "20 4 * * *"
  5. workflow_dispatch:
  6. jobs:
  7. update-pot:
  8. name: Update .pot file
  9. runs-on: ubuntu-latest
  10. permissions:
  11. contents: write
  12. steps:
  13. - name: Checkout code
  14. uses: actions/checkout@v3
  15. if: github.repository == 'hestiacp/hestiacp'
  16. - name: Build hestiacp.pot
  17. if: github.repository == 'hestiacp/hestiacp'
  18. run: |
  19. sudo apt install gettext -y
  20. cd ./web/locale
  21. bash ./hst_scan_i18n.sh
  22. - name: Commit new .pot file
  23. if: github.repository == 'hestiacp/hestiacp'
  24. uses: stefanzweifel/git-auto-commit-action@v4
  25. - name: crowdin action
  26. uses: crowdin/github-action@v1
  27. if: github.repository == 'hestiacp/hestiacp'
  28. with:
  29. upload_sources: true
  30. upload_translations: false
  31. download_translations: false
  32. env:
  33. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  34. CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
  35. CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}