mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2026-05-08 11:03:25 +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
|
exit 0
|
||||||
;;
|
;;
|
||||||
warn)
|
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
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
log "aborted"
|
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
|
exit 3
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue