@@ -53,27 +53,43 @@ jobs:
5353
5454 steps :
5555
56+ - name : Update agent configuration
57+ shell : pwsh
58+ run : |
59+ if ($IsWindows) {
60+ "DOTNET_INSTALL_DIR=D:\tools\dotnet" >> ${env:GITHUB_ENV}
61+ "DOTNET_ROOT=D:\tools\dotnet" >> ${env:GITHUB_ENV}
62+ "NUGET_PACKAGES=D:\.nuget\packages" >> ${env:GITHUB_ENV}
63+ } else {
64+ $nugetHome = "~/.nuget/packages"
65+ if (-Not (Test-Path $nugetHome)) {
66+ New-Item -Path $nugetHome -Type Directory -Force | Out-Null
67+ }
68+ $nugetHome = Resolve-Path $nugetHome
69+ "NUGET_PACKAGES=$nugetHome" >> ${env:GITHUB_ENV}
70+ }
71+
5672 - name : Checkout code
5773 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5874 with :
5975 fetch-depth : 0
6076 show-progress : false
6177
6278 - name : Setup .NET SDKs
63- uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
79+ uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
6480 with :
6581 dotnet-version : |
6682 8.0.x
6783 9.0.x
6884
6985 - name : Setup .NET SDK
70- uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
86+ uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
7187 id : setup-dotnet
7288
7389 - name : Setup NuGet cache
74- uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
90+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
7591 with :
76- path : ~/.nuget/packages
92+ path : ${{ env.NUGET_PACKAGES }}
7793 key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }}
7894 restore-keys : ${{ runner.os }}-nuget-
7995
84100
85101 - name : Upload Coverage Reports
86102 if : always()
87- uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
103+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
88104 with :
89105 name : coverage-${{ matrix.os_name }}
90106 path : ./artifacts/coverage-reports
@@ -98,14 +114,14 @@ jobs:
98114 token : ${{ secrets.CODECOV_TOKEN }}
99115
100116 - name : Publish NuGet packages
101- uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
117+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
102118 with :
103119 name : packages-${{ matrix.os_name }}
104120 path : ./artifacts/package/release
105121 if-no-files-found : error
106122
107123 - name : Upload signing file list
108- uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
124+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
109125 if : matrix.os_name == 'windows'
110126 with :
111127 name : signing-config
@@ -130,12 +146,12 @@ jobs:
130146 steps :
131147
132148 - name : Download packages
133- uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
149+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
134150 with :
135151 name : packages-windows
136152
137153 - name : Setup .NET SDK
138- uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
154+ uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
139155 with :
140156 dotnet-version : ${{ needs.build.outputs.dotnet-sdk-version }}
141157
@@ -168,19 +184,19 @@ jobs:
168184 steps :
169185
170186 - name : Download unsigned packages
171- uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
187+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
172188 with :
173189 name : packages-windows
174190 path : packages
175191
176192 - name : Download signing configuration
177- uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
193+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
178194 with :
179195 name : signing-config
180196 path : signing-config
181197
182198 - name : Setup .NET SDK
183- uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
199+ uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
184200 with :
185201 dotnet-version : ${{ needs.build.outputs.dotnet-sdk-version }}
186202
@@ -216,7 +232,7 @@ jobs:
216232 }
217233
218234 - name : Upload signed packages
219- uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
235+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
220236 with :
221237 name : signed-packages
222238 path : packages
@@ -228,12 +244,12 @@ jobs:
228244 steps :
229245
230246 - name : Download packages
231- uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
247+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
232248 with :
233249 name : signed-packages
234250
235251 - name : Setup .NET SDK
236- uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
252+ uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
237253 with :
238254 dotnet-version : ${{ needs.build.outputs.dotnet-sdk-version }}
239255
@@ -318,12 +334,12 @@ jobs:
318334 steps :
319335
320336 - name : Download signed packages
321- uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
337+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
322338 with :
323339 name : signed-packages
324340
325341 - name : Setup .NET SDK
326- uses : actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
342+ uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
327343 with :
328344 dotnet-version : ${{ needs.build.outputs.dotnet-sdk-version }}
329345
@@ -334,11 +350,11 @@ jobs:
334350
335351 - name : Generate GitHub application token
336352 id : generate-application-token
337- uses : peter-murray/workflow-application-token-action@d17e3a9a36850ea89f35db16c1067dd2b68ee343 # v4 .0.1
353+ uses : actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2 .0.2
338354 with :
339- application_id : ${{ secrets.POLLY_UPDATER_BOT_APP_ID }}
340- application_private_key : ${{ secrets.POLLY_UPDATER_BOT_KEY }}
341- permissions : ' contents:write'
355+ app-id : ${{ secrets.POLLY_UPDATER_BOT_APP_ID }}
356+ private-key : ${{ secrets.POLLY_UPDATER_BOT_KEY }}
357+ permission- contents : write
342358
343359 - name : Publish nuget_packages_published
344360 uses : peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
0 commit comments