更新 action.yml

如果沒有環境變數 ASPNETCORE_ENVIRONMENT,則從 inputs 取得
This commit is contained in:
2026-05-06 03:02:33 +00:00
parent 8c3850bd2d
commit eaae39ac07
+1 -1
View File
@@ -25,7 +25,7 @@ runs:
- name: 安裝套件
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ inputs.DOTNET_VERSION }}
dotnet-version: ${{ ASPNETCORE_ENVIRONMENT || inputs.DOTNET_VERSION }}
- name: 資料庫移轉
env:
ASPNETCORE_ENVIRONMENT: ${{ inputs.DOTNET_ENVIRONMENT }}