Skip to content

Commit

Permalink
Merge pull request #455 from Nordix/tuomo/bump-spellcheck
Browse files Browse the repository at this point in the history
bump spellcheck to 8.9.0
  • Loading branch information
metal3-io-bot committed Jul 3, 2024
2 parents ecf6bac + d2e66dd commit ee8d779
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hack/spellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,23 @@
# If the error happens because of a common technical term or proper name that is likely
# to appear many times, then please edit "../.cspell-config.json" and add it to the
# "words" list.
# shellcheck disable=SC2292

set -eux

IS_CONTAINER="${IS_CONTAINER:-false}"
CONTAINER_RUNTIME="${CONTAINER_RUNTIME:-podman}"
WORKDIR="${WORKDIR:-/workdir}"

# all md files, but ignore .github and node_modules
if [ "${IS_CONTAINER}" != "false" ]; then
cspell-cli --show-suggestions -c .cspell-config.json -- ./**/*.md
else
"${CONTAINER_RUNTIME}" run --rm \
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/workdir:ro,z" \
--volume "${PWD}:${WORKDIR}:ro,z" \
--entrypoint sh \
--workdir /workdir \
ghcr.io/streetsidesoftware/cspell:8.3.2@sha256:2a6ab337b2f1a89e910653b46fdf219e3e4ec9662fc8d561b956c1fe14db9fac \
/workdir/hack/spellcheck.sh "$@"
--workdir "${WORKDIR}" \
ghcr.io/streetsidesoftware/cspell:8.9.0@sha256:84dfae974e878ee364b379f754d221e315facbd903c7797e5ca46b3a31799f26 \
"${WORKDIR}"/hack/spellcheck.sh "$@"
fi

0 comments on commit ee8d779

Please sign in to comment.