diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 6f0aa62..d3acb1b 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -37,7 +37,10 @@ jobs: uses: actions/cache/restore@v3 with: path: .mutmut-cache - key: ${{ runner.os }}-mutmut-cache-${{ hashFiles('bookshelf/*.py') }} + key: mutmut-cache-${{ github.head_ref }}-${{ hashFiles('bookshelf/*.py') }} + restore-keys: | + mutmut-cache-${{ github.head_ref }} + mutmut-cache-main - name: 🦠 Run Mutation Tests run: | @@ -54,4 +57,4 @@ jobs: uses: actions/cache/save@v3 with: path: .mutmut-cache - key: ${{ runner.os }}-mutmut-cache-${{ hashFiles('bookshelf/*.py') }} + key: mutmut-cache-${{ github.head_ref }}-${{ hashFiles('bookshelf/*.py') }}