Skip to content

Commit

Permalink
Add a Script to List Translate Progress by File and Show the Assignee (
Browse files Browse the repository at this point in the history
  • Loading branch information
rockleona authored Nov 30, 2023
1 parent bc14c29 commit 44eb265
Show file tree
Hide file tree
Showing 6 changed files with 817 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/summarize_progress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: summarize_progress

on:
schedule:
- cron: '30 23 * * 5'

jobs:
ci:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v2

- name: Install poetry
uses: abatilo/actions-poetry@v2

- name: Execute Check Process
run: |
chmod +x .scripts/summarize_progress.sh
.scripts/summarize_progress.sh
shell: bash

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Weekly Update -- Summarize Progress
142 changes: 140 additions & 2 deletions .scripts/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .scripts/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python = "^3.10"
polib = "1.1.1"
googletrans = "3.1.0a0"
translate-toolkit = "3.8.1"

requests = "2.31.0"

[build-system]
requires = ["poetry-core"]
Expand Down
12 changes: 12 additions & 0 deletions .scripts/summarize_progress.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

WORK_DIR=.scripts
cd $WORK_DIR

source utils/install_poetry.sh

poetry lock
poetry install
poetry run bash -c "
python summarize_progress/main.py
"
Loading

0 comments on commit 44eb265

Please sign in to comment.