]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pull-requests: Skip GHA-only PRs 2450/head
authorZack Cerza <zack@cerza.org>
Wed, 24 Sep 2025 16:54:28 +0000 (10:54 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 24 Sep 2025 16:55:00 +0000 (10:55 -0600)
Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-pull-requests-arm64/build/build
ceph-pull-requests/build/build
scripts/build_utils.sh

index 8b4c1372a9199193b2c07309348a7f1ca20e58df..b06ebfa582200bc6b8567509a7e19b7682a464f4 100644 (file)
@@ -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
 
index 351b2b7f33d636059d4886e8bd6203c8e99db6bb..e171201d72a67745a3236556e5a9b6d2ad1a861b 100644 (file)
@@ -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
 
index c8dde312d8014340e1aae3e9723c998d4f437f5a..83a288c3f09f545be852eedacf4501029ff0047a 100755 (executable)
@@ -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"