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