Skip to content

Commit

Permalink
Modified scheduled jobs (#181)
Browse files Browse the repository at this point in the history
Signed-off-by: Chandan Pinjani <chandan.pinjani@suse.com>
  • Loading branch information
cpinjani authored Oct 10, 2024
1 parent 07b5145 commit 3d5dfcb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ run-name: AKS ${{ inputs.downstream_k8s_minor_version }} on Rancher v${{ inputs.

on:
schedule:
- cron: "0 4 * * *" # Run every day
- cron: "0 4 * * 1-6" # From Monday to Saturday
- cron: "0 4 * * 0" # On Sunday
workflow_dispatch: # Allow running manually on demand
inputs:
rancher_version:
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
rancher_version: ${{ inputs.rancher_version || '2.9-head' }}
k3s_version: ${{ inputs.k3s_version || 'v1.28.9+k3s1' }}
operator_nightly_chart: ${{ inputs.operator_nightly_chart == true || (github.event_name == 'schedule' && true) }}
tests_to_run: ${{ inputs.tests_to_run || 'p0_provisioning/p0_import' }}
tests_to_run: ${{ inputs.tests_to_run || (github.event.schedule == '0 4 * * 1-6' && 'p0_provisioning/p0_import') || (github.event.schedule == '0 4 * * 0' && 'p1_provisioning/p1_import/sync_provisioning/sync_import') }}
destroy_runner: ${{ inputs.destroy_runner == true || (github.event_name == 'schedule' && true) }}
runner_template: ${{ inputs.runner_template || 'hosted-prov-e2e-ci-runner-spot-n2-highmem-16-gl-template-v3' }}
downstream_k8s_minor_version: ${{ inputs.downstream_k8s_minor_version }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ run-name: EKS ${{ inputs.downstream_k8s_minor_version }} on Rancher v${{ inputs.

on:
schedule:
- cron: "0 4 * * *" # Run every day
- cron: "0 4 * * 1-6" # From Monday to Saturday
- cron: "0 4 * * 0" # On Sunday
workflow_dispatch: # Allow running manually on demand
inputs:
rancher_version:
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
rancher_version: ${{ inputs.rancher_version || '2.9-head' }}
k3s_version: ${{ inputs.k3s_version || 'v1.28.9+k3s1' }}
operator_nightly_chart: ${{ inputs.operator_nightly_chart == true || (github.event_name == 'schedule' && true) }}
tests_to_run: ${{ inputs.tests_to_run || 'p0_provisioning/p0_import' }}
tests_to_run: ${{ inputs.tests_to_run || (github.event.schedule == '0 4 * * 1-6' && 'p0_provisioning/p0_import') || (github.event.schedule == '0 4 * * 0' && 'p1_provisioning/p1_import/sync_provisioning/sync_import') }}
destroy_runner: ${{ inputs.destroy_runner ==true || (github.event_name == 'schedule' && true) }}
runner_template: ${{ inputs.runner_template || 'hosted-prov-e2e-ci-runner-spot-n2-highmem-16-gl-template-v3' }}
downstream_k8s_minor_version: ${{ inputs.downstream_k8s_minor_version }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ run-name: GKE ${{ inputs.downstream_k8s_minor_version }} on Rancher v${{ inputs.

on:
schedule:
- cron: "0 4 * * *" # Run every day
- cron: "0 4 * * 1-6" # From Monday to Saturday
- cron: "0 4 * * 0" # On Sunday
workflow_dispatch: # Allow running manually on demand
inputs:
rancher_version:
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
rancher_version: ${{ inputs.rancher_version || '2.9-head' }}
k3s_version: ${{ inputs.k3s_version || 'v1.28.9+k3s1' }}
operator_nightly_chart: ${{ inputs.operator_nightly_chart == true || (github.event_name == 'schedule' && true) }}
tests_to_run: ${{ inputs.tests_to_run || 'p0_provisioning/p0_import' }}
tests_to_run: ${{ inputs.tests_to_run || (github.event.schedule == '0 4 * * 1-6' && 'p0_provisioning/p0_import') || (github.event.schedule == '0 4 * * 0' && 'p1_provisioning/p1_import/sync_provisioning/sync_import') }}
destroy_runner: ${{ inputs.destroy_runner ==true || (github.event_name == 'schedule' && true) }}
runner_template: ${{ inputs.runner_template || 'hosted-prov-e2e-ci-runner-spot-n2-highmem-16-gl-template-v3' }}
downstream_k8s_minor_version: ${{ inputs.downstream_k8s_minor_version }}
Expand Down

0 comments on commit 3d5dfcb

Please sign in to comment.