[F] Try to fix github actions
parent
6c81521a10
commit
4cd606426e
|
@ -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
|
|
@ -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