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