Signed-off-by: Joseph Mundackal <joseph.j.mundackal@gmail.com>
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:
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: