Skip to content

Commit

Permalink
Fix sparse-checkout commit (#9022)
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard authored Sep 20, 2024
1 parent dde47c7 commit 9ae8cb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions eng/common/pipelines/templates/jobs/prepare-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ parameters:
- name: RepositoryPath
type: string
default: 'sdk'
- name: RepositoryCommitish
type: string
default: $(Build.SourceVersion)

jobs:
- job:
Expand Down Expand Up @@ -36,6 +39,7 @@ jobs:
parameters:
Repositories:
- Name: ${{ parameters.Repository }}
Commitish: ${{ parameters.RepositoryCommitish }}
WorkingDirectory: $(System.DefaultWorkingDirectory)
Paths:
- 'sdk/**/*.yml'
Expand Down
7 changes: 4 additions & 3 deletions eng/pipelines/pipeline-generation-single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ pr: none
trigger: none

parameters:
- name: Branch
type: string
default: main
- name: RepositoryName
type: string
default: azure-sdk-for-<lang>
- name: RepositoryPath
type: string
default: 'sdk/<service>'
- name: RepositoryCommitish
type: string
default: main

variables:
- template: /eng/pipelines/templates/variables/image.yml
Expand All @@ -24,3 +24,4 @@ jobs:
parameters:
Repository: Azure/${{ parameters.RepositoryName }}
RepositoryPath: ${{ parameters.RepositoryPath }}
RepositoryCommitish: ${{ parameters.RepositoryCommitish }}
1 change: 1 addition & 0 deletions eng/pipelines/pipeline-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ jobs:
- template: /eng/common/pipelines/templates/jobs/prepare-pipelines.yml
parameters:
Repository: ${{ repo }}
RepositoryCommitish: main

0 comments on commit 9ae8cb4

Please sign in to comment.