Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions windows-release/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ resources:
variables:
${{ if ne(parameters.GitRemote, '(Other)') }}:
GitRemote: ${{ parameters.GitRemote }}
GitRemoteIsOther: false
${{ else }}:
GitRemote: ${{ parameters.GitRemote_Other }}
GitRemoteIsOther: true
SourceTag: ${{ parameters.SourceTag }}
${{ if ne(parameters.SourceCommit, 'empty') }}:
SourceCommit: ${{ parameters.SourceCommit }}
Expand Down
5 changes: 5 additions & 0 deletions windows-release/stage-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
- group: CPythonTestSign

steps:
- powershell: |
throw "Production signing certificate requires SourceCommit and non-other GitRemote ('$(SourceCommit)' '$(GitRemote)')"
displayName: "Check 'SourceCommit' and 'GitRemoteIsOther' when using production signing certificate"
condition: and(succeeded(), or(not(IsRealSigned), and(variables['SourceCommit'], not(variables['GitRemoteIsOther']))))

- template: ./checkout.yml

- powershell: |
Expand Down
Loading