File tree 2 files changed +9
-6
lines changed 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ parameters:
20
20
type : string
21
21
default : main
22
22
- name : SourceCommit
23
- displayName : " Git commit (empty to disable commit SHA check)"
23
+ displayName : " Git commit (' empty' to disable commit SHA check)"
24
24
type : string
25
- default : ' '
25
+ default : ' empty '
26
26
- name : DoPublish
27
27
displayName : " Publish release"
28
28
type : boolean
@@ -94,7 +94,10 @@ variables:
94
94
${{ else }} :
95
95
GitRemote : ${{ parameters.GitRemote_Other }}
96
96
SourceTag : ${{ parameters.SourceTag }}
97
- SourceCommit : ${{ parameters.SourceCommit }}
97
+ ${{ if ne(parameters.SourceCommit, 'empty') }} :
98
+ SourceCommit : ${{ parameters.SourceCommit }}
99
+ ${{ else }} :
100
+ SourceCommit : ' '
98
101
${{ if ne(parameters.SigningCertificate, 'Unsigned') }} :
99
102
SigningCertificate : ${{ parameters.SigningCertificate }}
100
103
SigningDescription : ${{ parameters.SigningDescription }}
Original file line number Diff line number Diff line change 22
22
23
23
- powershell : |
24
24
$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)'"
27
27
}
28
28
displayName : " Verify CPython commit matches tag"
29
- condition : and(succeeded(), and( variables['GitCommit']) )
29
+ condition : and(succeeded(), variables['SourceCommit'] )
You can’t perform that action at this time.
0 commit comments