diff --git a/.github/workflows/opencc.yml b/.github/workflows/opencc.yml index 7a6ba47e..c338456c 100644 --- a/.github/workflows/opencc.yml +++ b/.github/workflows/opencc.yml @@ -30,6 +30,11 @@ jobs: 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 with: