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
Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -256,19 +256,19 @@ jobs:
256
256
- name: Restore packages
257
257
run: |
258
258
dotnet restore
259
-
- name: CleanupCode (on PR diff)
260
-
if: github.event_name == 'pull_request'
261
-
shell: pwsh
262
-
run: |
263
-
# Not using the environment variables for SHAs, because they may be outdated. This may happen on force-push after the build is queued, but before it starts.
264
-
# 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.
265
-
$headCommitHash = git rev-parse HEAD
266
-
$baseCommitHash = git rev-parse HEAD~1
267
-
268
-
Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request."
# # Not using the environment variables for SHAs, because they may be outdated. This may happen on force-push after the build is queued, but before it starts.
264
+
# # 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.
265
+
# $headCommitHash = git rev-parse HEAD
266
+
# $baseCommitHash = git rev-parse HEAD~1
267
+
#
268
+
# Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request."
0 commit comments