diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0811425..be2282f 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.402 - 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..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 = "7.0.201" + DotNetVersion = "8.0.402" } },