Skip to content

Commit

Permalink
Chore: Stop running scheduled tests on forks (pytest-dev#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeyondEvil authored Aug 20, 2023
1 parent eaacc0f commit 5e3cca1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 5e3cca1

Please sign in to comment.