From 664bb2c04a0dbe78ef8f8ca68d87fcef6f1b4488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Br=C3=A4nnlund?= Date: Sun, 20 Aug 2023 18:01:03 +0200 Subject: [PATCH] Chore: Stop running scheduled tests on forks --- .github/workflows/cron.yml | 10 ++++++++++ .github/workflows/tests.yml | 4 +--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/cron.yml diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml new file mode 100644 index 00000000..8f3703cd --- /dev/null +++ b/.github/workflows/cron.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f32856ca..124bf264 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }}