Skip to content

Scheduling infrastructure for absolutely everyone.

Removes partial matching for DB

zomarsfeca7c23fb57
diff --git a/.github/actions/cache-db/action.yml b/.github/actions/cache-db/action.yml
index 93fc9ebd2f8..a706e3260c9 100644
--- a/.github/actions/cache-db/action.yml
+++ b/.github/actions/cache-db/action.yml
@@ -15,12 +15,11 @@ runs:
uses: actions/cache@v3
env:
cache-name: cache-db
- key-1: ${{ hashFiles('packages/prisma/schema.prisma','packages/prisma/migrations/**.sql','packages/prisma/*.ts') }}
+ key-1: ${{ hashFiles('packages/prisma/schema.prisma', 'packages/prisma/migrations/**/**.sql', 'packages/prisma/*.ts') }}
+ key-2: ${{ github.event.pull_request.number || github.ref }}
with:
path: ${{ inputs.path }}
- key: ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ env.key-1 }}-${{ github.sha }}
- restore-keys: |
- ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ env.key-1 }}-${{ github.sha }}
+ key: ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ env.key-1 }}-${{ env.key-2 }}
- run: yarn db-seed
if: steps.cache-db.outputs.cache-hit != 'true'
shell: bash