From b9a8b5e503afe84b39260e5c395022774d3f4f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20LB?= Date: Thu, 10 Oct 2024 21:46:16 +0200 Subject: [PATCH 1/2] INFRA: Update Net Version 8 --- .github/workflows/build.yml | 20 ++++++++++++------- .../Services/ScriptGenerationService.cs | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0811425..37aacc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,11 +35,6 @@ jobs: with: github-token: ${{ secrets.PAT_FOR_TAGGING }} script: >2 - - if (!context.payload.pull_request) { - console.log('Not a pull request, skipping label script routine'); - return; - } const prefixes = [ 'INFRA:', @@ -74,10 +69,21 @@ jobs: 'BUSINESS:' ]; + + const pullRequest = context.payload.pull_request; + + + if (!pullRequest) { + console.log('No pull request context available.'); + return; + } + + const title = context.payload.pull_request.title; const existingLabels = context.payload.pull_request.labels.map(label => label.name); + for (const prefix of prefixes) { if (title.startsWith(prefix)) { const label = prefix.slice(0, -1); @@ -101,7 +107,7 @@ jobs: - name: Setup .Net uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.201 + dotnet-version: 8.0.10 - name: Restore run: dotnet restore - name: Build @@ -208,4 +214,4 @@ jobs: - name: Pack NuGet Package run: dotnet pack --configuration Release --include-symbols - name: Push NuGet Package - run: dotnet nuget push **/bin/Release/**/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_ACCESS }} --skip-duplicate \ No newline at end of file + run: dotnet nuget push **/bin/Release/**/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_ACCESS }} --skip-duplicate diff --git a/STX.SPAL.Core.Infrastructure.Build/Services/ScriptGenerationService.cs b/STX.SPAL.Core.Infrastructure.Build/Services/ScriptGenerationService.cs index d570420..a2e75bb 100644 --- a/STX.SPAL.Core.Infrastructure.Build/Services/ScriptGenerationService.cs +++ b/STX.SPAL.Core.Infrastructure.Build/Services/ScriptGenerationService.cs @@ -72,7 +72,7 @@ public void GenerateBuildScript() With = new TargetDotNetVersionV3 { - DotNetVersion = "7.0.201" + DotNetVersion = "8.0.10" } }, From e69979523be4283b00d647396c9e72604f38ee06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20LB?= Date: Thu, 10 Oct 2024 22:00:35 +0200 Subject: [PATCH 2/2] INFRA: Update NET 8 version --- .github/workflows/build.yml | 2 +- .../Services/ScriptGenerationService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37aacc1..be2282f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -107,7 +107,7 @@ jobs: - name: Setup .Net uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.0.10 + dotnet-version: 8.0.402 - name: Restore run: dotnet restore - name: Build diff --git a/STX.SPAL.Core.Infrastructure.Build/Services/ScriptGenerationService.cs b/STX.SPAL.Core.Infrastructure.Build/Services/ScriptGenerationService.cs index a2e75bb..192bd0b 100644 --- a/STX.SPAL.Core.Infrastructure.Build/Services/ScriptGenerationService.cs +++ b/STX.SPAL.Core.Infrastructure.Build/Services/ScriptGenerationService.cs @@ -72,7 +72,7 @@ public void GenerateBuildScript() With = new TargetDotNetVersionV3 { - DotNetVersion = "8.0.10" + DotNetVersion = "8.0.402" } },