Compare commits

...

7 Commits

Author SHA1 Message Date
Taiki Endo
37b71c39b2 Release 2.32.19 2024-04-17 09:09:48 +09:00
Taiki Endo
19c71244d4 Update typos@latest to 1.20.9 2024-04-17 03:12:20 +09:00
Taiki Endo
5c256d5a57 Release 2.32.18 2024-04-16 21:16:37 +09:00
Taiki Endo
1dbbb927fa Update biome@latest to 1.7.0 2024-04-16 00:10:56 +09:00
Taiki Endo
99774fec7f Release 2.32.17 2024-04-13 21:34:01 +09:00
Taiki Endo
c009cf7230 Simplify *_install helpers 2024-04-13 21:29:09 +09:00
Taiki Endo
4c0366722b Update cargo-tarpaulin@latest to 0.28.0 2024-04-13 21:12:48 +09:00
5 changed files with 91 additions and 32 deletions

View File

@@ -10,6 +10,18 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.32.19] - 2024-04-17
- Update `typos@latest` to 1.20.9.
## [2.32.18] - 2024-04-16
- Update `biome@latest` to 1.7.0.
## [2.32.17] - 2024-04-13
- Update `cargo-tarpaulin@latest` to 0.28.0.
## [2.32.16] - 2024-04-13
- Update `typos@latest` to 1.20.8.
@@ -2053,7 +2065,10 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.32.16...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.32.19...HEAD
[2.32.19]: https://github.com/taiki-e/install-action/compare/v2.32.18...v2.32.19
[2.32.18]: https://github.com/taiki-e/install-action/compare/v2.32.17...v2.32.18
[2.32.17]: https://github.com/taiki-e/install-action/compare/v2.32.16...v2.32.17
[2.32.16]: https://github.com/taiki-e/install-action/compare/v2.32.15...v2.32.16
[2.32.15]: https://github.com/taiki-e/install-action/compare/v2.32.14...v2.32.15
[2.32.14]: https://github.com/taiki-e/install-action/compare/v2.32.13...v2.32.14

37
main.sh
View File

@@ -31,6 +31,13 @@ warn() {
info() {
echo "info: $*"
}
_sudo() {
if type -P sudo &>/dev/null; then
sudo "$@"
else
"$@"
fi
}
download_and_checksum() {
local url="$1"
local checksum="$2"
@@ -289,36 +296,20 @@ install_cargo_binstall() {
fi
}
apt_update() {
if type -P sudo &>/dev/null; then
retry sudo apt-get -o Acquire::Retries=10 -qq update
else
retry apt-get -o Acquire::Retries=10 -qq update
fi
retry _sudo apt-get -o Acquire::Retries=10 -qq update
apt_updated=1
}
apt_install() {
if [[ -z "${apt_updated:-}" ]]; then
apt_update
fi
if type -P sudo &>/dev/null; then
retry sudo apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends "$@"
else
retry apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends "$@"
fi
retry _sudo apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends "$@"
}
apt_remove() {
if type -P sudo &>/dev/null; then
sudo apt-get -qq -o Dpkg::Use-Pty=0 remove -y "$@"
else
apt-get -qq -o Dpkg::Use-Pty=0 remove -y "$@"
fi
_sudo apt-get -qq -o Dpkg::Use-Pty=0 remove -y "$@"
}
snap_install() {
if type -P sudo &>/dev/null; then
retry sudo snap install "$@"
else
retry snap install "$@"
fi
retry _sudo snap install "$@"
}
apk_install() {
if type -P sudo &>/dev/null; then
@@ -330,11 +321,7 @@ apk_install() {
fi
}
dnf_install() {
if type -P sudo &>/dev/null; then
retry sudo "${dnf}" install -y "$@"
else
retry "${dnf}" install -y "$@"
fi
retry _sudo "${dnf}" install -y "$@"
}
sys_install() {
case "${base_distro}" in

27
manifests/biome.json generated
View File

@@ -35,10 +35,33 @@
}
},
"latest": {
"version": "1.6.4"
"version": "1.7.0"
},
"1": {
"version": "1.6.4"
"version": "1.7.0"
},
"1.7": {
"version": "1.7.0"
},
"1.7.0": {
"x86_64_linux_musl": {
"checksum": "9e8df2e263bd1a3c057a661682b280edf73c40a288f0c3267d11fcde2553cb87"
},
"x86_64_macos": {
"checksum": "2586beedcefa5ad6c5f2ae43148bf4c4e266eab3718e8b0355deb3b388e03358"
},
"x86_64_windows": {
"checksum": "a305a0e39b54301c97ab72c40db3409cc7d452096eee659c2402338402126f24"
},
"aarch64_linux_musl": {
"checksum": "a042bf5ee40e0b84ee7860a58af69d0766db719eec5a103e9f09b2eef08cf663"
},
"aarch64_macos": {
"checksum": "3ea37facceb5f565bd6ec5e343ed7aa4257ae78f42671dd68d9af06a1018803b"
},
"aarch64_windows": {
"checksum": "89d972f4d3e41475802b9d3f0e1dc6ed9d31079e8902813f9e4a5600fd814a81"
}
},
"1.6": {
"version": "1.6.4"

View File

@@ -18,7 +18,27 @@
}
},
"latest": {
"version": "0.27.3"
"version": "0.28.0"
},
"0.28": {
"version": "0.28.0"
},
"0.28.0": {
"x86_64_linux_musl": {
"checksum": "c86810ef9638219f70db16e9e272584b1365c2edfb63fe0e03f7254954c0a717"
},
"x86_64_macos": {
"checksum": "6bc2f349c837042fc90b3841d9ff5e657c7f5d9ebb2a15a4ba70ab5040587bf7"
},
"x86_64_windows": {
"checksum": "6ae64d9ebb91fe26bd8e2cb61c0a3604c0aa53c080d99921cc95d05d31e866f9"
},
"aarch64_linux_musl": {
"checksum": "6c023e176798e78c81cc4ba15d66c5f4f4f21c8000e69d469075b5927a1a8644"
},
"aarch64_macos": {
"checksum": "b2fee8ce9cb93cab5b467459cf4b63dd80ea372dac36c98fccc35660dd454fd5"
}
},
"0.27": {
"version": "0.27.3"

20
manifests/typos.json generated
View File

@@ -15,13 +15,27 @@
}
},
"latest": {
"version": "1.20.8"
"version": "1.20.9"
},
"1": {
"version": "1.20.8"
"version": "1.20.9"
},
"1.20": {
"version": "1.20.8"
"version": "1.20.9"
},
"1.20.9": {
"x86_64_linux_musl": {
"checksum": "3f36e675f9b463b0c385af92653f249f663d09ce1496cc1534f4a848a34cfc04"
},
"x86_64_macos": {
"checksum": "16591f4c39d31e9cb082cfcdb00d4b296a7254f0fa4f6446f27278d43863cb75"
},
"x86_64_windows": {
"checksum": "0acb7374014653b93c34301b2e2c5a7e47a74a88124173b4d6269866d1856687"
},
"aarch64_macos": {
"checksum": "489ec947b024bdce526157e48540aa020c2c7079729c49f7d89d26d29fe4bc72"
}
},
"1.20.8": {
"x86_64_linux_musl": {