From e8b08ee12ed376dd40003c57f2706001259c8f80 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Wed, 6 May 2026 09:33:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=82=BA=E6=AF=8F=E5=80=8B=E6=AD=A5?= =?UTF-8?q?=E9=A9=9F=E5=8A=A0=E4=B8=8A=E5=90=8D=E7=A8=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- action.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index a122a4a..eaaf77d 100644 --- a/action.yml +++ b/action.yml @@ -4,15 +4,21 @@ author: 'Jeffery' runs: using: 'composite' steps: - - uses: actions/checkout@v6 - - uses: https://gitea.jsc.idv.tw/actions/cache-nuget@v0.0.2 - - run: dotnet restore + - name: 取得專案 + uses: actions/checkout@v6 + - name: 快取 NUGET 套件 + uses: https://gitea.jsc.idv.tw/actions/cache-nuget@v0.0.2 + - name: 復原專案 + run: dotnet restore if: ${{ hashFiles('nuget.config') == '' }} shell: bash - - run: dotnet restore --configfile nuget.config + - name: 復原專案 + run: dotnet restore --configfile nuget.config if: ${{ hashFiles('nuget.config') != '' }} shell: bash - - run: dotnet build --no-restore + - name: 建置專案 + run: dotnet build --no-restore shell: bash - - run: dotnet test --no-restore --no-build + - name: 測試專案 + run: dotnet test --no-restore --no-build shell: bash \ No newline at end of file