Skip to content

Schedule monthly test runs with automated issue creation on failure - #19

Merged
csett86 merged 6 commits into
mainfrom
copilot/schedule-tests-every-month
Jan 17, 2026
Merged

csett86 merged 6 commits into
mainfrom
copilot/schedule-tests-every-month

Conversation

Copilot AI commented Jan 17, 2026 •

Copy link
Copy Markdown

Adds monthly scheduled test execution with automated issue tracking for failures.

Changes

  • Schedule: Cron trigger 0 0 1 * * runs tests monthly on the 1st at 00:00 UTC
  • Issue automation: New create-issue-on-failure job that:
    • Triggers only on scheduled runs when test/build jobs fail or are cancelled
    • Creates issue "Scheduled Tests Failed" with workflow run URL and timestamp
    • Appends comment to existing open issue instead of creating duplicates
    • Tags with automated-test-failure label
  • Permissions: Added issues: write for issue creation

Implementation

create-issue-on-failure:
  runs-on: ubuntu-latest
  needs: [test, build]
  if: always() && (needs.test.result == 'failure' || needs.test.result == 'cancelled' || needs.build.result == 'failure' || needs.build.result == 'cancelled') && github.event_name == 'schedule'
  steps:
    - name: Create issue on failure
      uses: actions/github-script@v7

The conditional uses always() with explicit result checks to ensure execution when dependencies fail. Deduplication logic queries for existing open issues with matching title and label before creating new ones.

Original prompt

Schedule the tests github action every month and create an issue if it fails


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 5 commits January 17, 2026 12:08
Co-authored-by: csett86 <1392875+csett86@users.noreply.github.com>
Co-authored-by: csett86 <1392875+csett86@users.noreply.github.com>
Co-authored-by: csett86 <1392875+csett86@users.noreply.github.com>
Co-authored-by: csett86 <1392875+csett86@users.noreply.github.com>
Co-authored-by: csett86 <1392875+csett86@users.noreply.github.com>
Copilot AI changed the title [WIP] Update GitHub Actions to schedule tests monthly Schedule monthly test runs with automated issue creation on failure Jan 17, 2026
Copilot AI requested a review from csett86 January 17, 2026 12:14
@csett86
csett86 marked this pull request as ready for review January 17, 2026 12:14
@csett86
csett86 merged commit 5e69015 into main Jan 17, 2026
10 checks passed
@csett86
csett86 deleted the copilot/schedule-tests-every-month branch January 17, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants