Skip to content

Commit 759a199

Browse files
Merge pull request #1443 from microsoftgraph/jingjingjia-ms/fix-kiota-conditional-checkout
Fix conditional insertion syntax in kiota generation template
2 parents cd15ac2 + 94bb852 commit 759a199

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.azure-pipelines/generation-templates/language-generation-kiota.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ steps:
7070
cleanMetadataFolder: ${{ parameters.cleanMetadataFolder }}
7171

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

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

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

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

0 commit comments

Comments
 (0)