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:
parent
6c81521a10
commit
4cd606426e
9
.github/workflows/opencc.sh
vendored
Executable file
9
.github/workflows/opencc.sh
vendored
Executable 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
|
10
.github/workflows/opencc.yml
vendored
10
.github/workflows/opencc.yml
vendored
@ -26,15 +26,7 @@ jobs:
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Convert zh-hant
|
||||
run: |
|
||||
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
|
||||
run: bash .github/workflows/opencc.sh
|
||||
|
||||
- uses: EndBug/add-and-commit@v7
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user