mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-12-24 20:31:27 +00:00
nicer error msg
This commit is contained in:
parent
c26ef59a6a
commit
2940bf37eb
|
|
@ -93,12 +93,20 @@ if test -z "${combined_packages}"; then
|
|||
exit 0
|
||||
;;
|
||||
warn)
|
||||
echo "::warning::Packages argument is empty. Please provide packages via the 'packages' input or create an Aptfile at the repository root."
|
||||
if test "${use_aptfile}" = "true"; then
|
||||
echo "::warning::Packages argument is empty. Please provide packages via the 'packages' input or create an Aptfile at the repository root."
|
||||
else
|
||||
echo "::warning::Packages argument is empty. Please provide packages via the 'packages' input."
|
||||
fi
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
log "aborted"
|
||||
log "Packages argument cannot be empty. Please provide packages via the 'packages' input or create an Aptfile at the repository root." >&2
|
||||
if test "${use_aptfile}" = "true"; then
|
||||
log "Packages argument cannot be empty. Please provide packages via the 'packages' input or create an Aptfile at the repository root." >&2
|
||||
else
|
||||
log "Packages argument cannot be empty. Please provide packages via the 'packages' input." >&2
|
||||
fi
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Reference in a new issue