mirror of
https://github.com/one-among-us/data.git
synced 2024-11-22 11:14:53 +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
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user