Chore: Stop running scheduled tests on forks (#720)

This commit is contained in:
Jim Brännlund 2023-08-20 18:34:45 +02:00 committed by GitHub
parent eaacc0fc3c
commit 5e3cca16ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

10
.github/workflows/cron.yml vendored Normal file
View File

@ -0,0 +1,10 @@
name: Scheduled Tests
on:
schedule:
- cron: '0 14 * * *' # Run daily at 14:00 UTC
jobs:
tests:
if: github.repository_owner == 'pytest-dev'
uses: ./.github/workflows/tests.yml

View File

@ -5,10 +5,8 @@ on:
branches:
- master
schedule:
- cron: '0 14 * * *' # Run daily at 14:00 UTC
pull_request:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}