From 21d5714af03cb1ead52c0e41bb12e096eb719620 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 16 Nov 2022 02:32:02 -0500 Subject: [PATCH] [F] Try to fix github actions --- .github/workflows/opencc.yml | 5 +++++ 1 file changed, 5 insertions(+) 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: