Skip to content

Commit e43b6b7

Browse files
committed
.github/workflow: Disable cron based github actions on forks
Signed-off-by: Joseph Mundackal <[email protected]>
1 parent cdb10d9 commit e43b6b7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/create-backport-trackers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ on:
3535
jobs:
3636
create-backports:
3737
runs-on: ubuntu-latest
38-
if: github.ref == 'refs/heads/main'
38+
# Backport checks need to be run ONLY on the main branch on ceph/ceph (not forks)
39+
if: github.ref == 'refs/heads/main' && github.repository == 'ceph/ceph'
3940
steps:
4041
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4142
with:

.github/workflows/stale.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
stale:
1010
runs-on: ubuntu-latest
11+
# Stale PR checks need not run on forks
12+
if: github.repository == 'ceph/ceph'
1113
steps:
1214
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
1315
with:

0 commit comments

Comments
 (0)