generate_issues.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: generate_issues
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. paths:
  6. - '.github/workflows/generate_issues.yml'
  7. - '.github/actions/testing_report_generation**'
  8. schedule:
  9. # Run every day at 5am (PDT) / 8am (EDT) - cron uses UTC times
  10. - cron: '0 12 * * *'
  11. permissions:
  12. issues: write
  13. jobs:
  14. generate_an_issue:
  15. # Don't run on private repo.
  16. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
  17. runs-on: ubuntu-latest
  18. name: Generate a nightly testing report issue
  19. steps:
  20. - uses: actions/checkout@v4
  21. - name: Create a nightly report
  22. uses: ./.github/actions/testing_report_generation/
  23. with:
  24. access-token: '${{ secrets.GITHUB_TOKEN }}'
  25. # This is to exclude workflows that will be searched in the nightly report.
  26. exclude-workflow-files: 'performance-integration-tests.yml, sessions-integration-tests.yml, codeql, dependabot-updates'
  27. test_generate_an_issue:
  28. # Don't run on private repo.
  29. if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name != 'schedule'
  30. runs-on: ubuntu-latest
  31. name: Test nightly report generations
  32. steps:
  33. - uses: actions/checkout@v4
  34. - name: Create a nightly report
  35. uses: ./.github/actions/testing_report_generation/
  36. with:
  37. access-token: '${{ secrets.GITHUB_TOKEN }}'
  38. # This is to exclude workflows that will be searched in the nightly report.
  39. exclude-workflow-files: 'performance-integration-tests.yml, sessions-integration-tests.yml, codeql, dependabot-updates'
  40. issue-labels: 'nightly-testing-report-generation-test'
  41. issue-title: 'Nightly Testing Report For Presubmit Testing'