Update Localization Submodule #1
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: Update Localization Submodule | |
| on: | |
| workflow_dispatch: # Manual trigger | |
| schedule: | |
| - cron: "20 10 * * *" # Runs at 10:20 am everyday | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update-localization: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Update submodule to latest feature/update-crowdin-translations | |
| run: | | |
| cd ts/localization | |
| git fetch origin feature/update-crowdin-translations | |
| git checkout origin/feature/update-crowdin-translations | |
| cd ../.. | |
| - name: Check for changes | |
| id: changes | |
| run: | | |
| if git diff --quiet; then | |
| echo "has_changes=false" >> $GITHUB_OUTPUT | |
| echo "No submodule changes detected" | |
| else | |
| echo "has_changes=true" >> $GITHUB_OUTPUT | |
| echo "Submodule changes detected" | |
| fi | |
| - name: Create Pull Request | |
| if: steps.changes.outputs.has_changes == 'true' | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| commit-message: "chore: update localization submodule" | |
| branch: update-localization | |
| delete-branch: true | |
| title: "chore: Update localization submodule" | |
| body: | | |
| ## Changes | |
| - Updated `session-localization` submodule to latest `feature/update-crowdin-translations` | |
| This updates the translations with the latest changes from Crowdin. | |
| Auto-generated by workflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |