From c1946c9f2c4b7be57d393b4d05435cc1ee75100c Mon Sep 17 00:00:00 2001 From: Jeffery Date: Wed, 6 May 2026 09:18:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=8F=E9=81=8E=20nuget.config=20?= =?UTF-8?q?=E6=AA=94=E6=A1=88=E5=88=A4=E6=96=B7=E8=A6=81=E5=9F=B7=E8=A1=8C?= =?UTF-8?q?=E7=9A=84=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index 2aa7413..a122a4a 100644 --- a/action.yml +++ b/action.yml @@ -7,6 +7,10 @@ runs: - uses: actions/checkout@v6 - uses: https://gitea.jsc.idv.tw/actions/cache-nuget@v0.0.2 - run: dotnet restore + if: ${{ hashFiles('nuget.config') == '' }} + shell: bash + - run: dotnet restore --configfile nuget.config + if: ${{ hashFiles('nuget.config') != '' }} shell: bash - run: dotnet build --no-restore shell: bash