From eaae39ac0751dcd12881ce79f780c08fa61a1628 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Wed, 6 May 2026 03:02:33 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20action.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如果沒有環境變數 ASPNETCORE_ENVIRONMENT,則從 inputs 取得 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 15b169b..77e83b0 100644 --- a/action.yml +++ b/action.yml @@ -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 }}