From 999c949020a710f3a013dd2a58fba4449424b762 Mon Sep 17 00:00:00 2001 From: Jitendrakumar Kushavah <78074038+jitendracandela@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:27:36 +0530 Subject: [PATCH] Updated the cron schedule to 5.30 PM IST and 11.30 PM IST for sanity workflow (#1000) * Updated the schedule runs at 5.30 PM IST for regression and performance workflow Signed-off-by: jitendracandela * Updated the schedule runs at 5.30 PM IST and 11.30 PM IST for sanity workflow Signed-off-by: jitendracandela --------- Signed-off-by: jitendracandela --- .github/workflows/performance.yml | 2 +- .github/workflows/quali.yml | 10 +++++----- .github/workflows/regression.yml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 697b8a4e2..a51d7b48d 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -45,7 +45,7 @@ on: default: "" description: "Tests release branch to use (i.e. 'release/v2.8.0' or 'master'). If left empty, latest release branch is used" schedule: - - cron: "30 11 * * 1-4" + - cron: "0 12 * * 1-4" jobs: # Set vars diff --git a/.github/workflows/quali.yml b/.github/workflows/quali.yml index 037ca17d7..c20a815a5 100644 --- a/.github/workflows/quali.yml +++ b/.github/workflows/quali.yml @@ -42,7 +42,7 @@ on: description: "Tests release branch to use (i.e. 'release/v2.8.0' or 'master'). If left empty, latest release branch is used" schedule: - - cron: "30 11,18 * * 1-4" + - cron: "0 12,18 * * 1-4" jobs: # Set vars @@ -70,14 +70,14 @@ jobs: echo "existing_controller=$(echo ${{ github.event.inputs.existing_controller || 'qa01' }})" >> $GITHUB_OUTPUT - # Schedule runs at - 11:30 AM UTC(5:00 PM IST), 6:00 PM UTC(11:30 PM IST) + # Schedule runs at - 12 PM UTC(5:30 PM IST), 6:00 PM UTC(11:30 PM IST) DOW=$(date +%u) TOD=$(date +%H%M) SLOT=$(( 10#$TOD % 24)) - if [[ "$TOD" == "1130" ]]; then - SLOT=1 # Slot 1: 5:00 PM IST - elif [[ "$TOD" == "1800" ]]; then + if [[ "$TOD" -ge "1200" && "$TOD" -lt "1215" ]]; then + SLOT=1 # Slot 1: 5:30 PM IST + elif [[ "$TOD" -ge "1800" && "$TOD" -lt "1815" ]]; then SLOT=2 # Slot 2: 11:30 PM IST else SLOT=0 # Default or invalid time diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index 09db82bba..6b6fe092f 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -45,7 +45,7 @@ on: default: "" description: "Tests release branch to use (i.e. 'release/v2.8.0' or 'master'). If left empty, latest release branch is used" schedule: - - cron: "30 11 * * 0,5,6" + - cron: "0 12 * * 0,5,6" jobs: # Set vars