run scheduled workflows only on origin repo

This commit is contained in:
faissaloux
2023-03-25 01:48:18 +00:00
parent 5df46d03c3
commit 473f295b77
3 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ on:
jobs:
ci:
if: github.event_name != 'schedule' || github.repository == 'pestphp/pest'
runs-on: ${{ matrix.os }}
strategy:
matrix:

View File

@ -8,6 +8,7 @@ on:
jobs:
static:
if: github.event_name != 'schedule' || github.repository == 'pestphp/pest'
name: Static Tests
runs-on: ubuntu-latest

View File

@ -9,6 +9,7 @@ on:
jobs:
ci:
if: github.event_name != 'schedule' || github.repository == 'pestphp/pest'
runs-on: ${{ matrix.os }}
strategy:
matrix: