mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 22:30:28 +00:00
Improve warning if tool is not specified
Suggested in https://github.com/taiki-e/install-action/issues/43#issuecomment-1372352184.
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]
|
||||||
|
|
||||||
|
- Diagnostic improvements.
|
||||||
|
|
||||||
## [2.1.1] - 2023-01-05
|
## [2.1.1] - 2023-01-05
|
||||||
|
|
||||||
- Emit warning if tool is not specified.
|
- Emit warning if tool is not specified.
|
||||||
|
|||||||
2
main.sh
2
main.sh
@@ -420,7 +420,7 @@ if ! type -P jq &>/dev/null || ! type -P curl &>/dev/null || ! type -P tar &>/de
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${#tools[@]} -eq 0 ]]; then
|
if [[ ${#tools[@]} -eq 0 ]]; then
|
||||||
warn "no tool specified; this may caused by dependabot bug that handles '@<tool>' shorthand in wrong way"
|
warn "no tool specified; this could be caused by a dependabot bug where @<tool_name> tags on this action are replaced by @<version> tags"
|
||||||
# Exit with 0 for backward compatibility, we want to reject it in the next major release.
|
# Exit with 0 for backward compatibility, we want to reject it in the next major release.
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user