New Crowdin Translations (#2805) #256
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Extract Strings for Translation | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}--${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }} | |
| cancel-in-progress: true | |
| jobs: | |
| extract-strings: | |
| name: Extract Strings | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.REPO_COMMIT }} | |
| - name: Setup Node 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.x" | |
| - name: Set up commit signing | |
| uses: Chia-Network/actions/commit-sign/gpg@main | |
| with: | |
| gpg_private_key: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_KEY }} | |
| passphrase: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_PASSPHRASE }} | |
| - name: Extract Strings | |
| run: | | |
| npm install | |
| npm run locale:extract | |
| - name: Commit changes back to the repo | |
| continue-on-error: true | |
| run: | | |
| git add '**/messages.po' | |
| git commit -m "Extract latest strings for translation" | |
| git push origin main |