更新 action.yml
fix: 修正環境變數要判斷的參數
This commit is contained in:
+2
-2
@@ -25,10 +25,10 @@ runs:
|
||||
- name: 安裝套件
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
dotnet-version: ${{ ASPNETCORE_ENVIRONMENT || inputs.DOTNET_VERSION }}
|
||||
dotnet-version: ${{ inputs.DOTNET_VERSION }}
|
||||
- name: 資料庫移轉
|
||||
env:
|
||||
ASPNETCORE_ENVIRONMENT: ${{ inputs.DOTNET_ENVIRONMENT }}
|
||||
ASPNETCORE_ENVIRONMENT: ${{ ASPNETCORE_ENVIRONMENT || inputs.DOTNET_ENVIRONMENT }}
|
||||
run: dotnet ef database update --project ../${{ inputs.MIGRATION_PROJECT_NAME }} --context ${{ inputs.MIGRATION_CONTEXT }}
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.PROJECT_NAME }}
|
||||
Reference in New Issue
Block a user