diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-16 09:15:07 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-16 09:15:07 +0900 |
| commit | 2341e4f5e59bd69aef02a048176d3228cddc293f (patch) | |
| tree | 99253982cd7b6f8b5bb7ce4672c0327a2465fcb5 /scripts/ci | |
| parent | 651c234f9c7097b6a2515f812a782af13b4b67d8 (diff) | |
| parent | dab5502e8a16d34d29adee6f7f9cb4f4ae0dfd68 (diff) | |
| download | mruby-2341e4f5e59bd69aef02a048176d3228cddc293f.tar.gz mruby-2341e4f5e59bd69aef02a048176d3228cddc293f.zip | |
Merge pull request #5445 from jbampton/add-codespell-pre-commit-hook
Run pre-commit with GitHub Actions
Diffstat (limited to 'scripts/ci')
| -rwxr-xr-x | scripts/ci/pre-commit/sort-codespell-wordlist.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/ci/pre-commit/sort-codespell-wordlist.sh b/scripts/ci/pre-commit/sort-codespell-wordlist.sh new file mode 100755 index 000000000..e5250f0a9 --- /dev/null +++ b/scripts/ci/pre-commit/sort-codespell-wordlist.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +CODESPELL_WORDLIST="codespell.txt" +temp_file=$(mktemp) +sort <"${CODESPELL_WORDLIST}" | uniq >"${temp_file}" +cat "${temp_file}" >"${CODESPELL_WORDLIST}" +rm "${temp_file}" |
