solus-packages/common/Scripts/package-publish-safety-catches.sh
Silke Hofstra afce3a9b52 common: Rework package-publish-safety-catches.sh to use the CI checks
**Summary**

Run the CI checks in the safety catches instead of using a separate implementation.
2024-04-03 11:24:52 +02:00

20 lines
403 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
check_script="$(dirname "$0")/../CI/package_checks.py"
check_args=(--base=origin/main --fail-on-warnings --results-only)
if python3 "${check_script}" "${check_args[@]}"
then
exit 0
fi
echo "Package checks failed. Press 'y' to continue, or any other key to abort."
read -rp "Continue anyway? [yN] " prompt
if [[ $prompt = "y" ]]
then
exit 0
else
exit 1
fi