mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(dir): ✨⚡️ enable caching in migration pipeline
This commit is contained in:
parent
2f39cb1b33
commit
44a1f1f2cf
1 changed files with 10 additions and 0 deletions
10
.github/workflows/directory-migrate.yml
vendored
10
.github/workflows/directory-migrate.yml
vendored
|
|
@ -61,9 +61,19 @@ jobs:
|
|||
git revert --no-edit $PREVIOUS_MIGRATION_HASH
|
||||
fi
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
cache-dependency-path: services/Directory/FilterLists.Directory.Api/packages.lock.json
|
||||
cache: true
|
||||
|
||||
- name: Install dotnet-ef
|
||||
run: dotnet tool install --global dotnet-ef
|
||||
|
||||
- name: Restore
|
||||
run: dotnet restore --locked-mode
|
||||
working-directory: ./services/Directory/FilterLists.Directory.Api
|
||||
|
||||
- name: Add Migration
|
||||
run: >
|
||||
dotnet ef migrations add ${{ github.event.number }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue