diff --git a/.github/workflows/on_schedule_tests.yaml b/.github/workflows/on_schedule_tests.yaml index 8658f057e8..b44f624180 100644 --- a/.github/workflows/on_schedule_tests.yaml +++ b/.github/workflows/on_schedule_tests.yaml @@ -8,6 +8,15 @@ on: schedule: - cron: '0 1 * * 1-5' + # Runs on pull requests that touch the template files, the template e2e tests, + # or this workflow itself, so that changes affecting the scheduled tests are + # validated before they are merged. + pull_request: + paths: + - 'src/crawlee/project_template/**' + - 'tests/e2e/**' + - '.github/workflows/on_schedule_tests.yaml' + concurrency: group: scheduled-tests cancel-in-progress: false