name: CI

on:
  push:
  pull_request:
  workflow_dispatch:
  # Every Sunday at 5:00pm UTC
  schedule:
    - cron: '0 17 * * 0'

jobs:
  ci:
    name: CI
    # Only run cron on the silverstripe account
    if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
    uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
