Skip to content

Commit

Permalink
Update source en.json with pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed May 29, 2024
1 parent b6cfab1 commit 5a0ace4
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 43 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/push-app-source-language-file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Push App Source Language File

on:
push:
branches: ["main"]
paths:
- locale/en.json

jobs:
push:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v4

- name: Install transifex client
run: |
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
- name: Push source language
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
run: |
./tx push --source
43 changes: 0 additions & 43 deletions .github/workflows/push-app-source-language.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/update-app-source-language-file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Update App Source Language File

on:
push:
branches: ["main"]
paths:
- "src/*.rs"
- "scripts/extract_locale_strings.py"
- ".github/workflows/update-app-source-language-file.yml"

jobs:
push:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Extract localizable strings
run: python scripts/extract_locale_strings.py

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: Update source language file
commit-message: Update source language file
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
add-paths: locale/en.json
delete-branch: true

0 comments on commit 5a0ace4

Please sign in to comment.