diff --git a/.github/workflows/directory-migrate.yml b/.github/workflows/directory-migrate.yml index 65a7985c7..9998cc6e7 100644 --- a/.github/workflows/directory-migrate.yml +++ b/.github/workflows/directory-migrate.yml @@ -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 }}