[ENG-1314] Re-enable cache factory on all main commits (#1608)

re-enable cache factory on all main commits
This commit is contained in:
Brendan Allan 2023-10-18 12:22:41 +08:00 committed by GitHub
parent f67b7e807a
commit 5d350472a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 12 deletions

View file

@ -23,8 +23,7 @@ runs:
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ inputs.save-cache }}
prefix-key: 'v0-rust-deps'
shared-key: ${{ inputs.target }}
shared-key: stable-cache
- name: Cargo config.toml
shell: bash
@ -34,7 +33,7 @@ runs:
id: cache-prisma-restore
uses: actions/cache/restore@v3
with:
key: prisma-1-${{ runner.os }}-${{ hashFiles('./core/prisma/*', './crates/sync-generator/*', './Cargo.toml') }}
key: prisma-1-${{ runner.os }}-${{ hashFiles('./core/prisma/*', './crates/sync-generator/*', './Cargo.*') }}
path: crates/prisma/src/**/*.rs
- name: Generate Prisma client

View file

@ -5,17 +5,10 @@ name: Cache Factory
on:
push:
paths:
- 'Cargo.lock'
- './scripts/setup.sh'
- './scripts/setup.ps1'
- '.github/workflows/cache-factory.yaml'
- '.github/actions/**/*.yml'
- '.github/actions/**/*.yaml'
- '**/build.rs'
- 'core/prisma/**'
branches:
- main
schedule:
- cron: '0 0 * * *'
# Cancel previous runs of the same workflow on the same branch.
concurrency: