From 5778a1e2137671e0e09d3f714215b10427685f7c Mon Sep 17 00:00:00 2001 From: Lilith Hafner Date: Mon, 16 Oct 2023 11:03:57 -0500 Subject: [PATCH] debug --- .github/workflows/SpellCheck.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml index 128797e4ebedb..8a5de553029d3 100644 --- a/.github/workflows/SpellCheck.yml +++ b/.github/workflows/SpellCheck.yml @@ -30,11 +30,17 @@ jobs: --quiet --output-document=- "${RELEASE_ASSET_URL}" \ | tar -xz -C "${{ runner.temp }}/typos" ./typos "${{ runner.temp }}/typos/typos" --version + echo z OLD_FILES=$(git diff-index --name-only --diff-filter=ad -z FETCH_HEAD) - NEW_FILES=$(git diff-index --name-only --diff-filter=d -d FETCH_HEAD) + echo a + NEW_FILES=$(git diff-index --name-only --diff-filter=d -z FETCH_HEAD) + echo b NEW_TYPOS=$(echo -n $NEW_FILES | xargs -0 "${{ runner.temp }}/typos/typos" --format json) + echo c git checkout FETCH_HEAD -- $OLD_FILES + echo d OLD_TYPOS=$(echo -n $OLD_FILES | xargs -0 "${{ runner.temp }}/typos/typos" --format json) + echo e python -c ' import sys, json existing = set(typo["typo"] for typo in json.loads("["+sys.argv[1].replace("\n", ",")+"]"))