]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
.github/workflow: Disable cron based github actions on forks
authorJoseph Mundackal <joseph.j.mundackal@gmail.com>
Wed, 5 Nov 2025 13:32:47 +0000 (08:32 -0500)
committerVenky Shankar <vshankar@redhat.com>
Fri, 7 Nov 2025 05:33:39 +0000 (05:33 +0000)
Signed-off-by: Joseph Mundackal <joseph.j.mundackal@gmail.com>
.github/workflows/create-backport-trackers.yml
.github/workflows/stale.yml

index 4706311c59b2e6c7fccfc79ef78995922c78a90c..6ad026abbe6a1aa008e76ff9b7029910a3d6efef 100644 (file)
@@ -35,7 +35,8 @@ on:
 jobs:
   create-backports:
     runs-on: ubuntu-latest
-    if: github.ref == 'refs/heads/main'
+    # Backport checks need to be run ONLY on the main branch on ceph/ceph (not forks)
+    if: github.ref == 'refs/heads/main' && github.repository == 'ceph/ceph'
     steps:
       - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
         with:
index 1805ae365339ceae1beae4d511ae250ebf63d8f1..723b93a27999822bf96a721ae7d3b120c793186a 100644 (file)
@@ -8,6 +8,8 @@ on:
 jobs:
   stale:
     runs-on: ubuntu-latest
+    # Stale PR checks need not run on forks
+    if: github.repository == 'ceph/ceph'
     steps:
       - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
         with: