-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpersianCorrectionPythonBeta.yml
More file actions
43 lines (35 loc) · 1.06 KB
/
persianCorrectionPythonBeta.yml
File metadata and controls
43 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Translation Workflow (Beta)
on:
workflow_dispatch:
env:
ACTIONS_RUNNER_DEBUG: true
jobs:
translation_job:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python dependencies
run: pip install lxml
- name: Run translation script (Python)
run: |
cd ${{ github.workspace }}
echo "Listing files:"
ls
dest_dir="${{ github.workspace }}/Persian/"
cd RTL-Tools-Python-Beta
python3 PersianFixer.py "$dest_dir" || { echo "PersianFixer.py failed"; exit 1; }
echo "Correction complete."
- name: Create ZIP archive
run: |
cd ${{ github.workspace }}
zip -r persian.language.zip ./Persian
- name: Upload ZIP as workflow artifact
uses: actions/upload-artifact@v4
with:
name: persian.language.zip
path: ./persian.language.zip