Compare commits

...

5 Commits

Author SHA1 Message Date
Taiki Endo
437c908c7e Release 2.44.44 2024-10-21 10:19:50 +09:00
Taiki Endo
c130bf4f37 Update shfmt@latest to 3.10.0 2024-10-21 06:13:55 +09:00
Taiki Endo
c4eb96f432 ci: Auto-update cspell dictionary 2024-10-21 03:12:56 +09:00
Taiki Endo
a3df29458d Release 2.44.43 2024-10-20 06:19:31 +09:00
Taiki Endo
df5c67543b Update dprint@latest to 0.47.4 2024-10-20 06:14:05 +09:00
5 changed files with 95 additions and 17 deletions

View File

@@ -34,6 +34,11 @@ concurrency:
jobs:
tidy:
uses: taiki-e/github-actions/.github/workflows/tidy.yml@main
permissions:
contents: read
pull-requests: write # for gh pr edit --add-assignee
repository-projects: read # for gh pr edit --add-assignee
secrets: inherit
test:
strategy:

View File

@@ -12,6 +12,14 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.44.44] - 2024-10-21
- Update `shfmt@latest` to 3.10.0.
## [2.44.43] - 2024-10-19
- Update `dprint@latest` to 0.47.4.
## [2.44.42] - 2024-10-19
- Update `grcov@latest` to 0.8.20.
@@ -2934,7 +2942,9 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.44.42...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.44.44...HEAD
[2.44.44]: https://github.com/taiki-e/install-action/compare/v2.44.43...v2.44.44
[2.44.43]: https://github.com/taiki-e/install-action/compare/v2.44.42...v2.44.43
[2.44.42]: https://github.com/taiki-e/install-action/compare/v2.44.41...v2.44.42
[2.44.41]: https://github.com/taiki-e/install-action/compare/v2.44.40...v2.44.41
[2.44.40]: https://github.com/taiki-e/install-action/compare/v2.44.39...v2.44.40

26
manifests/dprint.json generated
View File

@@ -25,10 +25,32 @@
},
"license_markdown": "[MIT](https://github.com/dprint/dprint/blob/main/LICENSE)",
"latest": {
"version": "0.47.2"
"version": "0.47.4"
},
"0.47": {
"version": "0.47.2"
"version": "0.47.4"
},
"0.47.4": {
"x86_64_linux_musl": {
"etag": "0x8DCF0701CE8BD49",
"checksum": "f43c768656e8024812222a238391601ad8db8e095fa87068e0d5c9c6176cb96a"
},
"x86_64_macos": {
"etag": "0x8DCF0701CE1E72C",
"checksum": "16f360c526c14c070ab618cf6c36ff9c8bf5b32c7e07a0c0c9b58d91697b4a40"
},
"x86_64_windows": {
"etag": "0x8DCF0701CDF78E3",
"checksum": "d91d0a6e607f06ee06fe2b01a6f602e2ace14d44e1d6f11ec6b3f1e0887a6fd6"
},
"aarch64_linux_musl": {
"etag": "0x8DCF0701CE6C3AD",
"checksum": "3b009c51c85336058672b4be54d4bdb044b7f9bbd570d51802449c1eac18ef6c"
},
"aarch64_macos": {
"etag": "0x8DCF0701CDB5ED2",
"checksum": "522783119d1ab52164ff2aaea2072c1578a7b8988156a0add06d370eb58d439e"
}
},
"0.47.2": {
"x86_64_linux_musl": {

29
manifests/shfmt.json generated
View File

@@ -19,10 +19,35 @@
},
"license_markdown": "[BSD-3-Clause](https://github.com/mvdan/sh/blob/master/LICENSE)",
"latest": {
"version": "3.9.0"
"version": "3.10.0"
},
"3": {
"version": "3.9.0"
"version": "3.10.0"
},
"3.10": {
"version": "3.10.0"
},
"3.10.0": {
"x86_64_linux_musl": {
"etag": "0x8DCF147B60D9F66",
"checksum": "1f57a384d59542f8fac5f503da1f3ea44242f46dff969569e80b524d64b71dbc"
},
"x86_64_macos": {
"etag": "0x8DCF147B5BEC692",
"checksum": "ef8d970b3f695a7e8e7d40730eedd2d935ab9599f78a365f319c515bc59d4c83"
},
"x86_64_windows": {
"etag": "0x8DCF147B43AEC35",
"checksum": "6e4c6acd38de7b4b1ba8f8082b9e688df8c9b861d3f8b2e7bb1b7270201a3587"
},
"aarch64_linux_musl": {
"etag": "0x8DCF147B4F57B2C",
"checksum": "9d23013d56640e228732fd2a04a9ede0ab46bc2d764bf22a4a35fb1b14d707a8"
},
"aarch64_macos": {
"etag": "0x8DCF147B56378B6",
"checksum": "86030533a823c0a7cd92dee0f74094e5b901c3277b43def6337d5e19e56fe553"
}
},
"3.9": {
"version": "3.9.0"

View File

@@ -418,8 +418,10 @@ EOF
if [[ -n "${dependencies_words:-}" ]]; then
echo $'\n'"${dependencies_words}" >>.github/.cspell/rust-dependencies.txt
fi
check_diff .github/.cspell/rust-dependencies.txt
if ! grep -Eq "^\.github/\.cspell/rust-dependencies.txt linguist-generated" .gitattributes; then
if [[ -z "${REMOVE_UNUSED_WORDS:-}" ]]; then
check_diff .github/.cspell/rust-dependencies.txt
fi
if ! grep -Fq '.github/.cspell/rust-dependencies.txt linguist-generated' .gitattributes; then
error "you may want to mark .github/.cspell/rust-dependencies.txt linguist-generated"
fi
@@ -443,17 +445,31 @@ EOF
done
# Make sure the project-specific dictionary does not contain unused words.
unused=''
for word in $(grep -v '//.*' "${project_dictionary}" || true); do
if ! grep <<<"${all_words}" -Eq -i "^${word}$"; then
unused+="${word}"$'\n'
if [[ -n "${REMOVE_UNUSED_WORDS:-}" ]]; then
grep_args=()
for word in $(grep -Ev '^//.*' "${project_dictionary}" || true); do
if ! grep -Eqi "^${word}$" <<<"${all_words}"; then
grep_args+=(-e "^${word}$")
fi
done
if [[ ${#grep_args[@]} -gt 0 ]]; then
info "removing unused words from ${project_dictionary}"
res=$(grep -Ev "${grep_args[@]}" "${project_dictionary}")
printf '%s\n' "${res}" >|"${project_dictionary}"
fi
else
unused=''
for word in $(grep -Ev '^//.*' "${project_dictionary}" || true); do
if ! grep -Eqi "^${word}$" <<<"${all_words}"; then
unused+="${word}"$'\n'
fi
done
if [[ -n "${unused}" ]]; then
error "unused words in dictionaries; please remove the following words from ${project_dictionary} or run ${0##*/} with REMOVE_UNUSED_WORDS=1"
printf '=======================================\n'
printf '%s' "${unused}"
printf '=======================================\n'
fi
done
if [[ -n "${unused}" ]]; then
error "unused words in dictionaries; please remove the following words from ${project_dictionary}"
echo "======================================="
echo -n "${unused}"
echo "======================================="
fi
fi
fi