Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EngSys] Reduce checkout.fetchDepth in pipelines #33090

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
3 changes: 2 additions & 1 deletion eng/pipelines/swagger-apiview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
parameters:

Check failure on line 1 in eng/pipelines/swagger-apiview.yml

View workflow job for this annotation

GitHub Actions / Protected Files

File 'eng/pipelines/swagger-apiview.yml' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.
- name: SwaggerApiParserVersion
type: string
default: '1.3.0-dev.20241029.2'
Expand All @@ -25,7 +25,8 @@

steps:
- checkout: self
fetchDepth: 0
# Required to compare head commit with base commit
fetchDepth: 2

- pwsh: |
dotnet tool install Azure.Sdk.Tools.SwaggerApiParser `
Expand Down
4 changes: 4 additions & 0 deletions eng/pipelines/swagger-prettier-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
trigger: none

Check failure on line 1 in eng/pipelines/swagger-prettier-check.yml

View workflow job for this annotation

GitHub Actions / Protected Files

File 'eng/pipelines/swagger-prettier-check.yml' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.

jobs:
- job:
Expand All @@ -10,6 +10,10 @@
- template: /eng/pipelines/templates/variables/globals.yml

steps:
- checkout: self
# Only need head commit
fetchDepth: 1

- template: /eng/pipelines/templates/steps/npm-install.yml

- pwsh: |
Expand Down
3 changes: 2 additions & 1 deletion eng/pipelines/typespec-apiview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
parameters:

Check failure on line 1 in eng/pipelines/typespec-apiview.yml

View workflow job for this annotation

GitHub Actions / Protected Files

File 'eng/pipelines/typespec-apiview.yml' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.
- name: APIViewArtifactsDirectoryName
type: string
default: 'TypespecAPIViewArtifacts'
Expand All @@ -21,7 +21,8 @@

steps:
- checkout: self
fetchDepth: 0
# Required to compare head commit with base commit
fetchDepth: 2

- template: /eng/pipelines/templates/steps/use-node-version.yml

Expand Down
Loading