diff --git a/.github/workflows/opencc.sh b/.github/workflows/opencc.sh deleted file mode 100755 index 45dc32a7..00000000 --- a/.github/workflows/opencc.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash -ls -lah -git log -python3 scripts/convert_zh.py - -# If the hash is the only thing that's changed, don't commit -if [[ "$(git diff --numstat | wc -l | xargs)" == 1 ]]; then - echo "Nothing changed, resetting" - git reset --hard -fi diff --git a/.github/workflows/opencc.yml b/.github/workflows/opencc.yml deleted file mode 100644 index 84e1ce55..00000000 --- a/.github/workflows/opencc.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: OpenCC Convert - -on: - push: - branches: [ main ] - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 20 # Fetch 20 recent commits - - - 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: bash .github/workflows/opencc.sh - - - uses: EndBug/add-and-commit@v7 - with: - default_author: github_actions - message: '[U] Generate zh_hant from zh_hans' - -