Compare commits

...

6 Commits

Author SHA1 Message Date
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
Taiki Endo
d22fec80bb Release 2.32.16 2024-04-13 10:08:35 +09:00
Taiki Endo
d68eb5a251 Update typos@latest to 1.20.8 2024-04-13 09:24:30 +09:00
Taiki Endo
4c45689087 Update syft@latest to 1.2.0 2024-04-13 09:24:30 +09:00
5 changed files with 85 additions and 32 deletions

View File

@@ -10,6 +10,16 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased] ## [Unreleased]
## [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.
- Update `syft@latest` to 1.2.0.
## [2.32.15] - 2024-04-12 ## [2.32.15] - 2024-04-12
- Update `cargo-deny@latest` to 0.14.21. - Update `cargo-deny@latest` to 0.14.21.
@@ -2047,7 +2057,9 @@ Note: This release is considered a breaking change because installing on version
Initial release Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.32.15...HEAD [Unreleased]: https://github.com/taiki-e/install-action/compare/v2.32.17...HEAD
[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.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 [2.32.14]: https://github.com/taiki-e/install-action/compare/v2.32.13...v2.32.14
[2.32.13]: https://github.com/taiki-e/install-action/compare/v2.32.12...v2.32.13 [2.32.13]: https://github.com/taiki-e/install-action/compare/v2.32.12...v2.32.13

37
main.sh
View File

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

View File

@@ -18,7 +18,27 @@
} }
}, },
"latest": { "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": { "0.27": {
"version": "0.27.3" "version": "0.27.3"

24
manifests/syft.json generated
View File

@@ -23,10 +23,30 @@
} }
}, },
"latest": { "latest": {
"version": "1.1.1" "version": "1.2.0"
}, },
"1": { "1": {
"version": "1.1.1" "version": "1.2.0"
},
"1.2": {
"version": "1.2.0"
},
"1.2.0": {
"x86_64_linux_musl": {
"checksum": "f56d63f6be18b12b6aff1222f5c9bcfe739b7d167165ed784151bb38e6c49bb2"
},
"x86_64_macos": {
"checksum": "8be9524c6b91304bbdddd183ff884b1cbdd805ba0d228b587ad3566ea0e66171"
},
"x86_64_windows": {
"checksum": "aec5b0219d948be0c9489c30eda9f463d10d7bcc3edca7b5c3b0f6d76dbc0704"
},
"aarch64_linux_musl": {
"checksum": "5699156ca5e568dad326605e2cb8a24774cd87ab858ac8fc438b8028e13c9d89"
},
"aarch64_macos": {
"checksum": "efaf83c8af800cea03f78eed117dfc8c16bebc64e6bcb165e0287cdae195fd76"
}
}, },
"1.1": { "1.1": {
"version": "1.1.1" "version": "1.1.1"

20
manifests/typos.json generated
View File

@@ -15,13 +15,27 @@
} }
}, },
"latest": { "latest": {
"version": "1.20.7" "version": "1.20.8"
}, },
"1": { "1": {
"version": "1.20.7" "version": "1.20.8"
}, },
"1.20": { "1.20": {
"version": "1.20.7" "version": "1.20.8"
},
"1.20.8": {
"x86_64_linux_musl": {
"checksum": "681a132089eae4d7c08b9bd9e0fb4bd40eb2418658130c91dcadaaa190cb0334"
},
"x86_64_macos": {
"checksum": "3f321104f7d5fe7f7d773d888ef0b235aad6c64889486b1d0858335c8f7075b7"
},
"x86_64_windows": {
"checksum": "bdd479b600d84b423b36811140b7617c6dd541df46e9d8729a837b5431351463"
},
"aarch64_macos": {
"checksum": "50b0c0392c0d49f4617daa30035d632c9dbe1c6ad0facca73395d7be50163b7e"
}
}, },
"1.20.7": { "1.20.7": {
"x86_64_linux_musl": { "x86_64_linux_musl": {