Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilith Hafner authored and Lilith Hafner committed Oct 16, 2023
1 parent c70961e commit 5778a1e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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", ",")+"]"))
Expand Down

0 comments on commit 5778a1e

Please sign in to comment.