From e006ba6c11fc42e8c0f06b0941fc9f01c6025dc8 Mon Sep 17 00:00:00 2001 From: vaisakhkannan <133869023+vaisakhkannan@users.noreply.github.com> Date: Tue, 28 May 2024 20:34:21 +0530 Subject: [PATCH] Modified --- .github/workflows/condition.yaml | 2 +- .github/workflows/delete_caches.yaml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/condition.yaml b/.github/workflows/condition.yaml index 1b1f8871f..746e757f5 100644 --- a/.github/workflows/condition.yaml +++ b/.github/workflows/condition.yaml @@ -2,7 +2,7 @@ name: Fetch All Open Pull Requests using condition using cron job on: schedule: - - cron: '50 14 * * 1-5' + - cron: '10 15 * * 1-5' jobs: fetch_all_pull_requests_and_notify_using_condition_and_cron: diff --git a/.github/workflows/delete_caches.yaml b/.github/workflows/delete_caches.yaml index ad06dc6cc..2fe03dd48 100644 --- a/.github/workflows/delete_caches.yaml +++ b/.github/workflows/delete_caches.yaml @@ -1,7 +1,7 @@ name: cleanup caches by a branch on: schedule: - - cron: '46 14 * * 1-5' + - cron: '10 15 * * 1-5' jobs: cleanup: @@ -13,8 +13,12 @@ jobs: echo "Fetching list of cache key" cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 ) + + echo "Cache keys---->: $cacheKeys" + + - ## Setting this to not fail the workflow while deleting cache keys. + ## Setting this to not fail the workflow while deleting cache keys. set +e echo "Deleting caches..." for cacheKey in $cacheKeysForPR @@ -23,6 +27,6 @@ jobs: done echo "Done" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.PAT }} REPO: ${{ github.repository }} BRANCH: main \ No newline at end of file