diff --git a/.github/workflows/test-dotnet-samples.yml b/.github/workflows/test-dotnet-samples.yml index 82219a4..784b37a 100644 --- a/.github/workflows/test-dotnet-samples.yml +++ b/.github/workflows/test-dotnet-samples.yml @@ -71,7 +71,14 @@ jobs: dotnet-version: ${{ env.DOTNET_VERSION }} - name: Build samples working-directory: ${{ matrix.dir }} - run: dotnet build -c Release *.csproj + run: | + dll_name=$(basename "$PWD") + + if [ "$dll_name" != "ConvertToOffice" ]; then + dotnet build -c Release *.csproj + else + echo "Not available on this os" + fi - name: List files run: | ls ${{matrix.dir}} @@ -79,4 +86,9 @@ jobs: working-directory: ${{matrix.dir}} run: | dll_name=$(basename "$PWD") - dotnet bin/Release/net6.0/$dll_name.dll + + if [ "$dll_name" != "ConvertToOffice" ]; then + dotnet bin/Release/net6.0/$dll_name.dll + else + echo "Not available on this os" + fi