Skip to content

Commit 249fc8b

Browse files
committed
fix: prevent workspace cleanup during checkout in build workflows
1 parent 1b384b6 commit 249fc8b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/build-and-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
uses: actions/checkout@v4
4646
with:
4747
fetch-depth: 0
48+
clean: false
4849

4950
- name: Determine Docker tags and cache
5051
id: docker_tags
@@ -161,6 +162,7 @@ jobs:
161162
uses: actions/checkout@v4
162163
with:
163164
fetch-depth: 0
165+
clean: false
164166

165167
- name: Set up Docker Buildx
166168
uses: docker/setup-buildx-action@v3
@@ -243,6 +245,8 @@ jobs:
243245
- name: Checkout repository
244246
if: github.ref == 'refs/heads/main'
245247
uses: actions/checkout@v4
248+
with:
249+
clean: false
246250

247251
- name: Docker Hub Description
248252
if: github.ref == 'refs/heads/main'
@@ -266,6 +270,7 @@ jobs:
266270
uses: actions/checkout@v4
267271
with:
268272
fetch-depth: 0
273+
clean: false
269274

270275
- name: Generate commit history
271276
id: changelog
@@ -364,6 +369,7 @@ jobs:
364369
uses: actions/checkout@v4
365370
with:
366371
fetch-depth: 0
372+
clean: false
367373

368374
- name: Collect commit information
369375
id: collect

.github/workflows/snd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
uses: actions/checkout@v4
3434
with:
3535
ref: snd
36+
clean: false
3637

3738
- name: Set up Docker Buildx
3839
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)