diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index ba0e11d5..ba2b1a54 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -132,7 +132,7 @@ jobs: if: github.ref == 'refs/heads/main' steps: - name: Run Sonarcloud test - uses: samsmithnz/SamsDotNetSonarCloudAction@v2.1.0 + uses: samsmithnz/SamsDotNetSonarCloudAction@v2.1.1 with: projects: 'src/DevOpsMetrics.Core/DevOpsMetrics.Core.csproj,src/DevOpsMetrics.Function/DevOpsMetrics.Function.csproj,src/DevOpsMetrics.FunctionalTests/DevOpsMetrics.FunctionalTests.csproj,src/DevOpsMetrics.Service/DevOpsMetrics.Service.csproj,src/DevOpsMetrics.Tests/DevOpsMetrics.Tests.csproj,src/DevOpsMetrics.Web/DevOpsMetrics.Web.csproj,src/DevOpsMetrics.Cmd/DevOpsMetrics.Cmd.csproj' dotnet-version: '8.0.x' @@ -274,13 +274,13 @@ jobs: creds: ${{ secrets.AZURE_SP }} #Swap staging slots with prod - name: Swap web service staging slot to production - uses: Azure/cli@v1.0.8 + uses: Azure/cli@v1.0.9 with: inlineScript: az webapp deployment slot swap --name "devops-prod-eu-service" --resource-group "devopsmetrics" --slot staging --target-slot production - name: Deploy web service app settings run: az webapp config appsettings set --name "devops-prod-eu-service" --resource-group "devopsmetrics" --settings "AppSettings:AzureDevOpsPatToken=${{ secrets.AzureDevOpsPATToken }}" "AppSettings:GitHubClientId=${{ secrets.GitHubClientId }}" "AppSettings:GitHubClientSecret=${{ secrets.GitHubClientSecret }}" "AppSettings:AzureStorageAccountConfigurationString=${{ secrets.AzureStorageConnectionString }}" - name: Swap web site staging slot to production - uses: Azure/cli@v1.0.8 + uses: Azure/cli@v1.0.9 with: inlineScript: az webapp deployment slot swap --name "devops-prod-eu-web" --resource-group "devopsmetrics" --slot staging --target-slot production - name: Deploy website app settings