mirror of
https://github.com/taiki-e/install-action
synced 2026-09-14 20:13:27 +00:00
Fix oxfmt installation
This commit is contained in:
@@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- Fix an issue where `oxfmt` was accidentally installed as `oxfmt-{target}{exe}`. ([#1969](https://github.com/taiki-e/install-action/pull/1969))
|
||||||
|
|
||||||
## [2.86.0] - 2026-08-15
|
## [2.86.0] - 2026-08-15
|
||||||
|
|
||||||
- Support `oxfmt`. ([#1967](https://github.com/taiki-e/install-action/pull/1967), thanks @rami3l)
|
- Support `oxfmt`. ([#1967](https://github.com/taiki-e/install-action/pull/1967), thanks @rami3l)
|
||||||
|
|||||||
@@ -95,8 +95,8 @@ download_and_extract() {
|
|||||||
case "${tool}" in
|
case "${tool}" in
|
||||||
# xbuild's binary name is "x", as opposed to the usual crate name
|
# xbuild's binary name is "x", as opposed to the usual crate name
|
||||||
xbuild) installed_bin=("${bin_dir}/x${exe}") ;;
|
xbuild) installed_bin=("${bin_dir}/x${exe}") ;;
|
||||||
# editorconfig-checker's binary name is renamed below
|
# Their binary names are renamed below.
|
||||||
editorconfig-checker) installed_bin=("${bin_dir}/${tool}${exe}") ;;
|
editorconfig-checker | oxfmt) installed_bin=("${bin_dir}/${tool}${exe}") ;;
|
||||||
*)
|
*)
|
||||||
for tmp in "${bin_in_archive[@]}"; do
|
for tmp in "${bin_in_archive[@]}"; do
|
||||||
installed_bin+=("${bin_dir}/$(basename -- "${tmp}")")
|
installed_bin+=("${bin_dir}/$(basename -- "${tmp}")")
|
||||||
@@ -205,7 +205,7 @@ download_and_extract() {
|
|||||||
esac
|
esac
|
||||||
for tmp in "${bin_in_archive[@]}"; do
|
for tmp in "${bin_in_archive[@]}"; do
|
||||||
case "${tool}" in
|
case "${tool}" in
|
||||||
editorconfig-checker) mv -- "${tmp}" "${bin_dir}/${tool}${exe}" ;;
|
editorconfig-checker | oxfmt) mv -- "${tmp}" "${bin_dir}/${tool}${exe}" ;;
|
||||||
*) mv -- "${tmp}" "${bin_dir}/" ;;
|
*) mv -- "${tmp}" "${bin_dir}/" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@@ -215,7 +215,7 @@ download_and_extract() {
|
|||||||
unzip -q tmp
|
unzip -q tmp
|
||||||
for tmp in "${bin_in_archive[@]}"; do
|
for tmp in "${bin_in_archive[@]}"; do
|
||||||
case "${tool}" in
|
case "${tool}" in
|
||||||
editorconfig-checker) mv -- "${tmp}" "${bin_dir}/${tool}${exe}" ;;
|
editorconfig-checker | oxfmt) mv -- "${tmp}" "${bin_dir}/${tool}${exe}" ;;
|
||||||
*) mv -- "${tmp}" "${bin_dir}/" ;;
|
*) mv -- "${tmp}" "${bin_dir}/" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user