10000 Address review comments · python/release-tools@3ce0ff9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ce0ff9

Browse files
committed
Address review comments
1 parent 7bb7fd3 commit 3ce0ff9

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

windows-release/azure-pipelines.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ parameters:
2020
type: string
2121
default: main
2222
- name: SourceCommit
23-
displayName: "Git commit (empty to disable commit SHA check)"
23+
displayName: "Git commit ('empty' to disable commit SHA check)"
2424
type: string
25-
default: ''
25+
default: 'empty'
2626
- name: DoPublish
2727
displayName: "Publish release"
2828
type: boolean
@@ -94,7 +94,10 @@ variables:
9494
${{ else }}:
9595
GitRemote: ${{ parameters.GitRemote_Other }}
9696
SourceTag: ${{ parameters.SourceTag }}
97-
SourceCommit: ${{ parameters.SourceCommit }}
97+
${{ if ne(parameters.SourceCommit, 'empty') }}:
98+
SourceCommit: ${{ parameters.SourceCommit }}
99+
${{ else }}:
100+
SourceCommit: ''
98101
${{ if ne(parameters.SigningCertificate, 'Unsigned') }}:
99102
SigningCertificate: ${{ parameters.SigningCertificate }}
100103
SigningDescription: ${{ parameters.SigningDescription }}

windows-release/checkout.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ steps:
2222

2323
- powershell: |
2424
$checkout_commit = (git rev-parse HEAD)
25-
if ($checkout_commit -ne $GitCommit) {
26-
throw "Expected git commit '$(GitCommit)' didn't match tagged commit '$(checkout_commit)'"
25+
if ($checkout_commit -ne SourceCommit) {
26+
throw "Expected git commit '$(SourceCommit)' didn't match tagged commit '$(checkout_commit)'"
2727
}
2828
displayName: "Verify CPython commit matches tag"
29-
condition: and(succeeded(), and(variables['GitCommit']))
29+
condition: and(succeeded(), variables['SourceCommit'])

0 commit comments

Comments
 (0)
0