From 0b3f4e8446f94a3deda877e024dc2ef27eb64275 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 16 Nov 2022 02:20:58 -0500 Subject: [PATCH] [+] Actions workflow --- .github/workflows/opencc.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/opencc.yml diff --git a/.github/workflows/opencc.yml b/.github/workflows/opencc.yml new file mode 100644 index 00000000..ebff309a --- /dev/null +++ b/.github/workflows/opencc.yml @@ -0,0 +1,33 @@ +name: OpenCC Convert + +on: + push: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + cache: 'pip' # caching pip dependencies + + - name: Install Python Dependencies + run: pip install -r requirements.txt + + - name: Convert zh-hant + run: python3 scripts/convert_zh.py + + - uses: EndBug/add-and-commit@v7 + with: + default_author: github_actions + message: '[U] Generate zh_hant from zh_hans' + +