crowdin-sync-upload.yml 762 B

1234567891011121314151617181920212223242526
  1. name: "Crowdin Sync: Upload English strings"
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - "**/en-US.ini"
  8. jobs:
  9. crowdin-sync-upload:
  10. name: Upload English strings
  11. runs-on: ubuntu-latest
  12. env:
  13. CROWDIN_PAT: ${{ secrets.CROWDIN_SYNC_CROWDIN_PAT }}
  14. GITHUB_EVENT_BEFORE: ${{ github.event.before }}
  15. steps:
  16. - uses: actions/checkout@v2
  17. with:
  18. submodules: recursive
  19. fetch-depth: 100
  20. - uses: actions/setup-node@v2
  21. with:
  22. node-version: 16
  23. - name: Download Script
  24. run: wget -P ./other/ https://raw.githubusercontent.com/obsproject/crowdin-synchronization/0.1.2/dist/upload.mjs
  25. - name: Upload English strings to Crowdin
  26. run: node ./other/upload.mjs