From 631cb1c838a90d62ca86742ebf33e79c299698ab Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Sat, 16 Mar 2024 09:55:40 +0100 Subject: [PATCH] Do not use cache for scheduled CI-CD run --- .github/actions/test/action.yml | 1 + .github/workflows/ci-cd.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 40cf46fd..8759e441 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -51,6 +51,7 @@ runs: - name: Cache PIP Packages uses: actions/cache@v4 id: cache + if: github.event_name != 'schedule' with: path: ${{ steps.os.outputs.pip-cache }} key: ${{ inputs.os }}-pip-test-${{ inputs.python-version }}-${{ hashFiles('**/requirements.txt', '**/constraints.txt') }}-${{ steps.os.outputs.date }} diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index b72b02f0..ff8f0e6c 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -9,7 +9,7 @@ on: - '*' pull_request: schedule: - - cron: '0 16 * * *' + - cron: '10 9 * * *' workflow_dispatch: permissions: {}