fix: configure clone plugin with lfs disabled
Use woodpeckerci/plugin-git with lfs: false setting instead of skipping clone entirely. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+5
-8
@@ -2,20 +2,17 @@
|
|||||||
when:
|
when:
|
||||||
- event: pull_request
|
- event: pull_request
|
||||||
|
|
||||||
skip_clone: true
|
clone:
|
||||||
|
- name: clone
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
settings:
|
||||||
|
lfs: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- git clone --depth=1 ${CI_REPO_CLONE_URL} .
|
|
||||||
- git checkout ${CI_COMMIT_SHA}
|
|
||||||
|
|
||||||
- name: restore
|
- name: restore
|
||||||
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
|
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
|
||||||
commands:
|
commands:
|
||||||
- dotnet restore
|
- dotnet restore
|
||||||
depends_on: [clone]
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
|
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
|
||||||
|
|||||||
@@ -3,20 +3,19 @@ when:
|
|||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
skip_clone: true
|
clone:
|
||||||
|
- name: clone
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
settings:
|
||||||
|
lfs: false
|
||||||
|
depth: 50
|
||||||
|
tags: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- git clone --depth=50 --tags ${CI_REPO_CLONE_URL} .
|
|
||||||
- git checkout ${CI_COMMIT_SHA}
|
|
||||||
|
|
||||||
- name: restore
|
- name: restore
|
||||||
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
|
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
|
||||||
commands:
|
commands:
|
||||||
- dotnet restore
|
- dotnet restore
|
||||||
depends_on: [clone]
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
|
image: mcr.microsoft.com/dotnet/sdk:10.0-preview
|
||||||
|
|||||||
Reference in New Issue
Block a user