@@ -20,11 +20,11 @@ jobs:
2020 fetch-depth : 0 # fetch-depth is needed for GitVersion
2121 # Install and calculate the new version with GitVersion
2222 - name : Install GitVersion
23- uses : gittools/actions/gitversion/setup@v0.10.2
23+ uses : gittools/actions/gitversion/setup@v1.1.1
2424 with :
2525 versionSpec : 5.x
2626 - name : Determine Version
27- uses : gittools/actions/gitversion/execute@v0.10.2
27+ uses : gittools/actions/gitversion/execute@v1.1.1
2828 id : gitversion # step id used as reference for output values
2929 - name : Display GitVersion outputs
3030 run : |
@@ -132,7 +132,7 @@ jobs:
132132 if : github.ref == 'refs/heads/main'
133133 steps :
134134 - name : Run Sonarcloud test
135- uses : samsmithnz/SamsDotNetSonarCloudAction@v2.1.0
135+ uses : samsmithnz/SamsDotNetSonarCloudAction@v2.1
136136 with :
137137 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'
138138 dotnet-version : ' 8.0.x'
@@ -151,7 +151,7 @@ jobs:
151151# steps:
152152# # Login with the secret SP details
153153# - name: Log into Azure
154- # uses: azure/login@v1
154+ # uses: azure/login@v2
155155# with:
156156# creds: ${{ secrets.AZURE_SP_PROBOT }}
157157# - name: Download webapp artifact
@@ -179,7 +179,7 @@ jobs:
179179 steps :
180180 # Login with the secret SP details
181181 - name : Log into Azure
182- uses : azure/login@v1
182+ uses : azure/login@v2
183183 with :
184184 creds : ${{ secrets.AZURE_SP }}
185185
@@ -269,18 +269,18 @@ jobs:
269269 steps :
270270 # Login with the secret SP details
271271 - name : Log into Azure
272- uses : azure/login@v1
272+ uses : azure/login@v2
273273 with :
274274 creds : ${{ secrets.AZURE_SP }}
275275 # Swap staging slots with prod
276276 - name : Swap web service staging slot to production
277- uses : Azure/cli@v1 .0.8
277+ uses : Azure/cli@v2 .0.0
278278 with :
279279 inlineScript : az webapp deployment slot swap --name "devops-prod-eu-service" --resource-group "devopsmetrics" --slot staging --target-slot production
280280 - name : Deploy web service app settings
281281 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 }}"
282282 - name : Swap web site staging slot to production
283- uses : Azure/cli@v1 .0.8
283+ uses : Azure/cli@v2 .0.0
284284 with :
285285 inlineScript : az webapp deployment slot swap --name "devops-prod-eu-web" --resource-group "devopsmetrics" --slot staging --target-slot production
286286 - name : Deploy website app settings
0 commit comments