更新 action.yml
如果沒有環境變數 ASPNETCORE_ENVIRONMENT,則從 inputs 取得
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ runs:
|
|||||||
- name: 安裝套件
|
- name: 安裝套件
|
||||||
uses: actions/setup-dotnet@v5
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: ${{ inputs.DOTNET_VERSION }}
|
dotnet-version: ${{ ASPNETCORE_ENVIRONMENT || inputs.DOTNET_VERSION }}
|
||||||
- name: 資料庫移轉
|
- name: 資料庫移轉
|
||||||
env:
|
env:
|
||||||
ASPNETCORE_ENVIRONMENT: ${{ inputs.DOTNET_ENVIRONMENT }}
|
ASPNETCORE_ENVIRONMENT: ${{ inputs.DOTNET_ENVIRONMENT }}
|
||||||
|
|||||||
Reference in New Issue
Block a user