From 7580715869121b3f1ec7df476e5c567beeaa95d7 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 24 Sep 2025 10:54:28 -0600 Subject: [PATCH] ceph-pull-requests: Skip GHA-only PRs Signed-off-by: Zack Cerza --- ceph-pull-requests-arm64/build/build | 5 +++-- ceph-pull-requests/build/build | 5 +++-- scripts/build_utils.sh | 8 ++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ceph-pull-requests-arm64/build/build b/ceph-pull-requests-arm64/build/build index 8b4c1372..b06ebfa5 100644 --- a/ceph-pull-requests-arm64/build/build +++ b/ceph-pull-requests-arm64/build/build @@ -2,8 +2,9 @@ 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 diff --git a/ceph-pull-requests/build/build b/ceph-pull-requests/build/build index 351b2b7f..e171201d 100644 --- a/ceph-pull-requests/build/build +++ b/ceph-pull-requests/build/build @@ -2,8 +2,9 @@ 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 diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index c8dde312..83a288c3 100755 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -1762,6 +1762,14 @@ container_pr_only() { 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" -- 2.39.5