Skip to content

Commit d2970e8

Browse files
authored
added retore before ef migration (#338)
* added retore before ef migration * added dummy migration * fix the env name * added dummy migration * added dummy migration * removed dummy migration
1 parent 5d517ff commit d2970e8

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/promote-to-prod-and-public.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
contents: read
5858
uses: ./.github/workflows/run-migration.yml
5959
with:
60-
env-name: prod
60+
env-name: Production
6161
secrets:
6262
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
6363
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
@@ -73,7 +73,7 @@ jobs:
7373
contents: read
7474
uses: ./.github/workflows/run-migration.yml
7575
with:
76-
env-name: public
76+
env-name: Public
7777
secrets:
7878
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
7979
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/run-migration-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
contents: read
3838
uses: ./.github/workflows/run-migration.yml
3939
with:
40-
env-name: dev
40+
env-name: Development
4141
secrets:
4242
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
4343
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/run-migration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
contents: read
4242
uses: ./.github/workflows/run-migration.yml
4343
with:
44-
env-name: test
44+
env-name: Test
4545
secrets:
4646
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
4747
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/run-migration.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ jobs:
7171
- name: Install EF Core tools
7272
run: dotnet tool install --global dotnet-ef
7373

74+
- name: Restore NuGet packages
75+
working-directory: PrismaDotnetApi/
76+
run: dotnet restore PrismaApi.sln
77+
7478
- name: Run migration
7579
working-directory: PrismaDotnetApi/
7680
env:

0 commit comments

Comments
 (0)