name: generate_issues
on:
  schedule:
    # Run every day at 5am (PST) - cron uses UTC times
    - cron:  '0 13 * * *'
jobs:
  generate_an_issue:
    # Don't run on private repo.
    if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
    runs-on: ubuntu-latest
    name: Generate a nightly testing report issue
    steps:
    - uses: actions/checkout@v2
    - name: Create a nightly report
      uses: ./.github/actions/testing_report_generation/
      with:
        access-token: '${{ secrets.GITHUB_TOKEN }}'
        # This is to exclude workflows that will be searched in the nightly report.
        exclude-workflow-files: 'performance-integration-tests.yml,mlmodeldownloader.yml'
