diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml
index ba0e11d5..a56c6835 100644
--- a/.github/workflows/dotnetcore.yml
+++ b/.github/workflows/dotnetcore.yml
@@ -20,11 +20,11 @@ jobs:
fetch-depth: 0 #fetch-depth is needed for GitVersion
#Install and calculate the new version with GitVersion
- name: Install GitVersion
- uses: gittools/actions/gitversion/setup@v0.10.2
+ uses: gittools/actions/gitversion/setup@v1.1.1
with:
versionSpec: 5.x
- name: Determine Version
- uses: gittools/actions/gitversion/execute@v0.10.2
+ uses: gittools/actions/gitversion/execute@v1.1.1
id: gitversion # step id used as reference for output values
- name: Display GitVersion outputs
run: |
@@ -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
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'
@@ -151,7 +151,7 @@ jobs:
# steps:
# # Login with the secret SP details
# - name: Log into Azure
-# uses: azure/login@v1
+# uses: azure/login@v2
# with:
# creds: ${{ secrets.AZURE_SP_PROBOT }}
# - name: Download webapp artifact
@@ -179,7 +179,7 @@ jobs:
steps:
# Login with the secret SP details
- name: Log into Azure
- uses: azure/login@v1
+ uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_SP }}
@@ -269,18 +269,18 @@ jobs:
steps:
# Login with the secret SP details
- name: Log into Azure
- uses: azure/login@v1
+ uses: azure/login@v2
with:
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@v2.0.0
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@v2.0.0
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
diff --git a/src/DevOpsMetrics.Cmd/DevOpsMetrics.Cmd.csproj b/src/DevOpsMetrics.Cmd/DevOpsMetrics.Cmd.csproj
index 23a5eab4..5d59e345 100644
--- a/src/DevOpsMetrics.Cmd/DevOpsMetrics.Cmd.csproj
+++ b/src/DevOpsMetrics.Cmd/DevOpsMetrics.Cmd.csproj
@@ -20,8 +20,8 @@
-
-
+
+
diff --git a/src/DevOpsMetrics.Core/DevOpsMetrics.Core.csproj b/src/DevOpsMetrics.Core/DevOpsMetrics.Core.csproj
index fbcdaf61..1f682a27 100644
--- a/src/DevOpsMetrics.Core/DevOpsMetrics.Core.csproj
+++ b/src/DevOpsMetrics.Core/DevOpsMetrics.Core.csproj
@@ -5,7 +5,7 @@
-
+
diff --git a/src/DevOpsMetrics.Function/DevOpsMetrics.Function.csproj b/src/DevOpsMetrics.Function/DevOpsMetrics.Function.csproj
index 8032ffc1..86eb9b2e 100644
--- a/src/DevOpsMetrics.Function/DevOpsMetrics.Function.csproj
+++ b/src/DevOpsMetrics.Function/DevOpsMetrics.Function.csproj
@@ -7,9 +7,9 @@
-
+
-
+
diff --git a/src/DevOpsMetrics.FunctionalTests/DevOpsMetrics.FunctionalTests.csproj b/src/DevOpsMetrics.FunctionalTests/DevOpsMetrics.FunctionalTests.csproj
index ec31eb14..00a804c2 100644
--- a/src/DevOpsMetrics.FunctionalTests/DevOpsMetrics.FunctionalTests.csproj
+++ b/src/DevOpsMetrics.FunctionalTests/DevOpsMetrics.FunctionalTests.csproj
@@ -7,15 +7,15 @@
-
-
-
-
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
diff --git a/src/DevOpsMetrics.Service/DevOpsMetrics.Service.csproj b/src/DevOpsMetrics.Service/DevOpsMetrics.Service.csproj
index fa5dc6e1..1bab5091 100644
--- a/src/DevOpsMetrics.Service/DevOpsMetrics.Service.csproj
+++ b/src/DevOpsMetrics.Service/DevOpsMetrics.Service.csproj
@@ -7,12 +7,12 @@
-
+
-
-
+
+
-
+
diff --git a/src/DevOpsMetrics.Tests/DevOpsMetrics.Tests.csproj b/src/DevOpsMetrics.Tests/DevOpsMetrics.Tests.csproj
index 5178b95f..a10e0ba3 100644
--- a/src/DevOpsMetrics.Tests/DevOpsMetrics.Tests.csproj
+++ b/src/DevOpsMetrics.Tests/DevOpsMetrics.Tests.csproj
@@ -21,19 +21,19 @@
-
-
-
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
-
-
-
-
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive