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