If only the qa directory changed, we don't need to run make check.
Signed-off-by: Zack Cerza <zack@cerza.org>
docs_pr_only
container_pr_only
gha_pr_only
-if [[ "$DOCS_ONLY" = true || "$CONTAINER_ONLY" = true || "$GHA_ONLY" == true ]]; then
- echo "Only the doc/, container/ or .github/ dir changed. No need to run make check."
+qa_pr_only
+if [[ "$DOCS_ONLY" = true || "$CONTAINER_ONLY" = true || "$GHA_ONLY" == true || "$QA_ONLY" == true ]]; then
+ echo "Only the doc/, container/, qa/ or .github/ dir changed. No need to run make check."
exit 0
fi
docs_pr_only
container_pr_only
gha_pr_only
-if [[ "$DOCS_ONLY" = true || "$CONTAINER_ONLY" = true || "$GHA_ONLY" == true ]]; then
- echo "Only the doc/, container/ or .github/ dir changed. No need to run make check."
+qa_pr_only
+if [[ "$DOCS_ONLY" = true || "$CONTAINER_ONLY" = true || "$GHA_ONLY" == true || "$QA_ONLY" == true ]]; then
+ echo "Only the doc/, container/, qa/ or .github/ dir changed. No need to run make check."
exit 0
fi
if pr_only_for patterns; then GHA_ONLY=true; fi
}
+qa_pr_only () {
+ QA_ONLY=false
+ local patterns=(
+ 'qa/*'
+ )
+ if pr_only_for patterns; then QA_ONLY=true; fi
+}
+
function ssh_exec() {
if [[ -z $SSH_ADDRESS ]]; then
echo "ERROR: Env variable SSH_ADDRESS is not set"