From 80f3b183d29081f5e0bf4cf67a0f286299a31a65 Mon Sep 17 00:00:00 2001 From: William Lyles <26171886+wilyle@users.noreply.github.com> Date: Mon, 20 Nov 2023 12:18:48 -0800 Subject: [PATCH] version varaible --- .github/workflows/dotnet-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-ci.yml b/.github/workflows/dotnet-ci.yml index ffa6c5a..9ebc953 100644 --- a/.github/workflows/dotnet-ci.yml +++ b/.github/workflows/dotnet-ci.yml @@ -8,16 +8,19 @@ on: branches: - main +env: + DOTNET_VERSION: 6.0.119 + jobs: static_code_analysis: runs-on: ubuntu-20.04 steps: - name: Checkout repository and submodules uses: actions/checkout@v3 - - name: Install .NET 6.0.119 + - name: Install .NET $DOTNET_VERSION uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.119 + dotnet-version: $DOTNET_VERSION global-json-file: cloud_connectors/azure/digital_twins_connector/global.json - name: Cache NuGet dependencies uses: actions/cache@v3 @@ -35,6 +38,7 @@ jobs: uses: dotnet/code-analysis@main id: net-code-analysis with: + dotnet-version: $DOTNET_VERSION projects: cloud_connectors/azure/digital_twins_connector/src/core/DigitalTwinsConnector.csproj; cloud_connectors/azure/digital_twins_connector/src/DigitalTwinsClientWrapper/DigitalTwinsClientWrapper.csproj; cloud_connectors/azure/digital_twins_connector/tests/DigitalTwinsClientWrapper.Tests/DigitalTwinsClientWrapper.Tests.csproj;