Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ steps:
cleanMetadataFolder: ${{ parameters.cleanMetadataFolder }}

# Default path: check out the target repo via its service connection.
${{ if eq(parameters.useGitHubAppAuth, false) }}:
- ${{ if eq(parameters.useGitHubAppAuth, false) }}:
- checkout: ${{ parameters.repoName }}
displayName: 'checkout ${{ parameters.repoName }}'
fetchDepth: 1
Expand All @@ -85,7 +85,7 @@ ${{ if eq(parameters.useGitHubAppAuth, false) }}:

# App-auth path: the target repo is public, so clone it anonymously (no PAT). The push
# remote is switched to a GitHub App token in a later step before the push happens.
${{ if eq(parameters.useGitHubAppAuth, true) }}:
- ${{ if eq(parameters.useGitHubAppAuth, true) }}:
- pwsh: |
$repoDir = "$(Build.SourcesDirectory)/${{ parameters.repoName }}"
if (Test-Path $repoDir) { Remove-Item $repoDir -Recurse -Force }
Expand Down Expand Up @@ -125,7 +125,7 @@ ${{ if eq(parameters.useGitHubAppAuth, true) }}:

# App-auth path: fetch the App secrets and switch the push remote to the App token
# BEFORE pushing.
${{ if eq(parameters.useGitHubAppAuth, true) }}:
- ${{ if eq(parameters.useGitHubAppAuth, true) }}:
- task: AzureKeyVault@2
displayName: "Azure Key Vault: Get Secrets"
inputs:
Expand Down Expand Up @@ -153,7 +153,7 @@ ${{ if eq(parameters.useGitHubAppAuth, true) }}:

# Default path: secrets are fetched after the push, just before PR creation. On the
# App-auth path the secrets were already fetched above and persist for the PR step.
${{ if eq(parameters.useGitHubAppAuth, false) }}:
- ${{ if eq(parameters.useGitHubAppAuth, false) }}:
- task: AzureKeyVault@2
displayName: "Azure Key Vault: Get Secrets"
inputs:
Expand Down
Loading