diff --git a/.github/actions/run_tests/action.yaml b/.github/actions/run_tests/action.yaml index b65429b5..15819d89 100644 --- a/.github/actions/run_tests/action.yaml +++ b/.github/actions/run_tests/action.yaml @@ -1,5 +1,9 @@ name: run jrnl tests description: Runs all jrnl tests on multiple platforms +inputs: + cache-string: + description: 'Cache string secret. Change to bust the cache' + required: true shell: bash runs: using: "composite" @@ -20,7 +24,7 @@ runs: uses: actions/cache@v2 with: path: .venv - key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ env.PYTHON_FULL_VERSION }}-${{ secrets.CACHE_STRING }} + key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }}-${{ env.PYTHON_FULL_VERSION }}-${{ inputs.cache-string }} - name: Install dependencies run: | diff --git a/.github/workflows/testing_prs.yaml b/.github/workflows/testing_prs.yaml index a8bd45d4..0fd0546d 100644 --- a/.github/workflows/testing_prs.yaml +++ b/.github/workflows/testing_prs.yaml @@ -36,4 +36,8 @@ jobs: os: [ ubuntu-latest, macos-latest, windows-latest ] steps: - uses: actions/checkout@v2 + with: + cache-string: ${{ secrets.CACHE_STRING }} - uses: ./.github/actions/run_tests + with: + cache-string: ${{ secrets.CACHE_STRING }}