Skip to content

Commit 664bb2c

Browse files
committed
Chore: Stop running scheduled tests on forks
1 parent eaacc0f commit 664bb2c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/cron.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Scheduled Tests
2+
3+
on:
4+
schedule:
5+
- cron: '0 14 * * *' # Run daily at 14:00 UTC
6+
7+
jobs:
8+
tests:
9+
if: github.repository_owner == 'pytest-dev'
10+
uses: ./.github/workflows/tests.yml

.github/workflows/tests.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ on:
55
branches:
66
- master
77

8-
schedule:
9-
- cron: '0 14 * * *' # Run daily at 14:00 UTC
10-
118
pull_request:
9+
workflow_call:
1210

1311
concurrency:
1412
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)