Skip to content

Publishing translations for translation/de/blurb (#2801) #541

Publishing translations for translation/de/blurb (#2801)

Publishing translations for translation/de/blurb (#2801) #541

name: Transform and sync
on:
schedule:
- cron: '0 0 * * SUN'
push:
branches:
- published
jobs:
nilakkhana-transform-all-supported-files:
runs-on: ubuntu-latest
steps:
- name: Checkout published branch
uses: actions/checkout@v3
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11.3
- name: Execute python script to transform
run: |
python .nilakkhana/process_all_supported_files.py
- name: Push changed files
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "[GHA] Nilakkhana transform"
git push origin published:published
- name: Sync changed files to sc-data repo
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
src_branch: published
src_path: /.
dst_owner: suttacentral
dst_repo_name: sc-data
dst_path: /sc_bilara_data/
dst_branch: master
clean: true
commit_message: '[GHA] Sync nilakkhana transformed files from bilara-data.'