mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Add diagnostic reporting for validation phase.
This commit is contained in:
parent
17fec907ec
commit
bd28d4bdd2
|
@ -10,6 +10,7 @@ if [ $? -eq 0 ]; then
|
|||
echo "::error::Aborted. Version value '$version' cannot contain spaces." >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "::debug::Version '$version' is valid."
|
||||
|
||||
if [ "$packages" == "" ]; then
|
||||
echo "::error::Aborted. Packages argument cannot be empty." >&2
|
||||
|
@ -23,5 +24,6 @@ for package in $packages; do
|
|||
exit 3
|
||||
fi
|
||||
done
|
||||
echo "::debug::Packages '$packages' are valid."
|
||||
|
||||
echo "::endgroup::"
|
||||
|
|
Loading…
Reference in a new issue