1
0
mirror of https://github.com/one-among-us/data.git synced 2024-11-22 03:04:51 +08:00

[F] Try to fix github actions

This commit is contained in:
Hykilpikonna 2022-11-16 02:36:14 -05:00
parent 6c81521a10
commit 4cd606426e
No known key found for this signature in database
GPG Key ID: 256CD01A41D7FA26
2 changed files with 10 additions and 9 deletions

9
.github/workflows/opencc.sh vendored Executable file
View File

@ -0,0 +1,9 @@
#!/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)" == "1" ]]; then
git reset hard
fi

View File

@ -26,15 +26,7 @@ jobs:
pip install -r requirements.txt pip install -r requirements.txt
- name: Convert zh-hant - name: Convert zh-hant
run: | run: bash .github/workflows/opencc.sh
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)" == "1"]]
git reset hard
fi
- uses: EndBug/add-and-commit@v7 - uses: EndBug/add-and-commit@v7
with: with: