From 90b76e2a74faf857f702f60b484c2eb754b14276 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Wed, 6 May 2026 03:10:16 +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 fix: 修正環境變數要判斷的參數 --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 77e83b0..f8a057b 100644 --- a/action.yml +++ b/action.yml @@ -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 }} \ No newline at end of file