mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-29 10:30:23 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
899b013517 | ||
|
|
2ef37fafbe | ||
|
|
c5540270ed |
@@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.9.4] - 2023-06-08
|
||||
|
||||
- Update `parse-changelog@latest` to 0.5.4.
|
||||
|
||||
## [2.9.3] - 2023-06-05
|
||||
|
||||
- Update `cargo-udeps@latest` to 0.1.40.
|
||||
@@ -841,7 +845,8 @@ Note: This release is considered a breaking change because installing on version
|
||||
|
||||
Initial release
|
||||
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.9.3...HEAD
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.9.4...HEAD
|
||||
[2.9.4]: https://github.com/taiki-e/install-action/compare/v2.9.3...v2.9.4
|
||||
[2.9.3]: https://github.com/taiki-e/install-action/compare/v2.9.2...v2.9.3
|
||||
[2.9.2]: https://github.com/taiki-e/install-action/compare/v2.9.1...v2.9.2
|
||||
[2.9.1]: https://github.com/taiki-e/install-action/compare/v2.9.0...v2.9.1
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
set -euxo pipefail
|
||||
IFS=$'\n\t'
|
||||
cd "$(dirname "$0")"/..
|
||||
|
||||
1
main.sh
1
main.sh
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
||||
24
manifests/parse-changelog.json
generated
24
manifests/parse-changelog.json
generated
@@ -23,10 +23,30 @@
|
||||
}
|
||||
},
|
||||
"latest": {
|
||||
"version": "0.5.3"
|
||||
"version": "0.5.4"
|
||||
},
|
||||
"0.5": {
|
||||
"version": "0.5.3"
|
||||
"version": "0.5.4"
|
||||
},
|
||||
"0.5.4": {
|
||||
"x86_64_linux_musl": {
|
||||
"checksum": "b2a430ebd0d23a3608258446d9f93162ca324fd2ca691ca3baa11625c9d7fec3"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"checksum": "4476f9ce9de07ddba76f77e6260e3cbece3801654882c8161694d742f8f01a59"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"checksum": "6cd753b60b3385e2fd3aef79bc9a6c954f01737e2380bdc06b2c55ef9d4b8c79"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"checksum": "73f85fdda5937ac3ee0fd3a4385998cc6a640736b3e73923b0afd061abb575be"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"checksum": "164936f970d8ab870aa3355411db736994dbb86019630bf2818d0958d30768b5"
|
||||
},
|
||||
"aarch64_windows": {
|
||||
"checksum": "b7c1c92c83fce15746c1d289fbf14b31b3f43a043e28b25638ae8ed7b1005ea0"
|
||||
}
|
||||
},
|
||||
"0.5.3": {
|
||||
"x86_64_linux_musl": {
|
||||
|
||||
1
tools/.tidy-check-license-headers
Normal file
1
tools/.tidy-check-license-headers
Normal file
@@ -0,0 +1 @@
|
||||
git ls-files '*.sh' # TODO: check more files
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
cd "$(dirname "$0")"/..
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
cd "$(dirname "$0")"/..
|
||||
|
||||
@@ -201,6 +201,44 @@ else
|
||||
warn "'shellcheck' is not installed"
|
||||
fi
|
||||
|
||||
# License check
|
||||
# TODO: This check is still experimental and does not track all files that should be tracked.
|
||||
if [[ -f tools/.tidy-check-license-headers ]]; then
|
||||
info "checking license headers (experimental)"
|
||||
failed_files=''
|
||||
for p in $(eval $(<tools/.tidy-check-license-headers)); do
|
||||
# TODO: More file types?
|
||||
case "$(basename "${p}")" in
|
||||
*.sh) prefix=("# ") ;;
|
||||
*.rs | *.c | *.h | *.cpp | *.hpp | *.s | *.S) prefix=("// " "/* ") ;;
|
||||
*.ld | *.x) prefix=("/* ") ;;
|
||||
*) error "unrecognized file type: ${p}" ;;
|
||||
esac
|
||||
# TODO: The exact line number is not actually important; it is important
|
||||
# that it be part of the top-level comments of the file.
|
||||
line="1"
|
||||
case "${p}" in
|
||||
*.sh) line="2" ;; # shebang
|
||||
esac
|
||||
header_found=''
|
||||
for pre in "${prefix[@]}"; do
|
||||
if [[ "$(grep -E -n "${pre}SPDX-License-Identifier: " "${p}")" == "${line}:${pre}SPDX-License-Identifier: "* ]]; then
|
||||
header_found='1'
|
||||
continue
|
||||
fi
|
||||
done
|
||||
if [[ -z "${header_found}" ]]; then
|
||||
failed_files+="${p}:${line}"$'\n'
|
||||
fi
|
||||
done
|
||||
if [[ -n "${failed_files}" ]]; then
|
||||
error "license-check failed: please add SPDX-License-Identifier to the following files"
|
||||
echo "======================================="
|
||||
echo -n "${failed_files}"
|
||||
echo "======================================="
|
||||
fi
|
||||
fi
|
||||
|
||||
# Spell check (if config exists)
|
||||
if [[ -f .cspell.json ]]; then
|
||||
info "spell checking"
|
||||
|
||||
Reference in New Issue
Block a user