You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Error "One or more projects failed code inspection."
207
-
}
208
-
else {
209
-
Write-Output "No issues found."
210
-
}
211
-
}
205
+
# if ($failed) {
206
+
# Write-Error "One or more projects failed code inspection."
207
+
# }
208
+
# else {
209
+
# Write-Output "No issues found."
210
+
# }
211
+
# }
212
212
213
-
cleanup-code:
214
-
timeout-minutes: 60
215
-
strategy:
216
-
fail-fast: false
217
-
matrix:
218
-
os: [ubuntu-latest, windows-latest, macos-latest]
219
-
runs-on: ${{ matrix.os }}
220
-
steps:
221
-
- name: Git checkout
222
-
uses: actions/checkout@v3
223
-
with:
224
-
fetch-depth: 2
225
-
- name: Setup .NET
226
-
uses: actions/setup-dotnet@v3
227
-
with:
228
-
dotnet-version: 6.0.x
229
-
- name: Restore tools
230
-
run: |
231
-
dotnet tool restore
232
-
- name: Restore packages
233
-
run: |
234
-
dotnet restore
235
-
- name: CleanupCode (on PR diff)
236
-
if: github.event_name == 'pull_request'
237
-
shell: pwsh
238
-
run: |
239
-
# Not using the environment variables for SHAs, because they may be outdated. This happens on force-push after the build is queued, but before it starts.
240
-
# The below works because HEAD is detached (at the merge commit), so HEAD~1 is at the base branch. When a PR contains no commits, this job will not run.
# # Not using the environment variables for SHAs, because they may be outdated. This happens on force-push after the build is queued, but before it starts.
240
+
# # The below works because HEAD is detached (at the merge commit), so HEAD~1 is at the base branch. When a PR contains no commits, this job will not run.
241
+
# $headCommitHash = git rev-parse HEAD
242
+
# $baseCommitHash = git rev-parse HEAD~1
243
243
244
-
Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request."
0 commit comments