Skip to content

Commit 730b181

Browse files
committed
ci(workflow): 自托管 arm64 跳过 checkout 清理
- 避免 .pip-cache 权限导致仓库清理失败
1 parent 07bc73e commit 730b181

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ jobs:
2020
- name: windows-amd64
2121
runner: windows-latest
2222
setup_python: true
23+
checkout_clean: true
2324
python_cmd: python
2425
exe_name: integrated_script.exe
2526
out_name: integrated_script-${{ github.ref_name }}-windows-amd64.exe
2627
- name: linux-amd64
2728
runner: ubuntu-latest
2829
setup_python: false
30+
checkout_clean: true
2931
use_container: true
3032
container_image: registry.access.redhat.com/ubi8/python-39
3133
container_python: /usr/bin/python3.9
@@ -38,6 +40,7 @@ jobs:
3840
- Linux
3941
- ARM64
4042
setup_python: false
43+
checkout_clean: false
4144
use_container: true
4245
container_image: registry.access.redhat.com/ubi8/python-39
4346
container_python: /usr/bin/python3.9
@@ -49,6 +52,7 @@ jobs:
4952
- uses: actions/checkout@v4
5053
with:
5154
fetch-depth: 0
55+
clean: ${{ matrix.checkout_clean }}
5256

5357
- uses: actions/setup-python@v5
5458
if: ${{ matrix.setup_python == true }}

0 commit comments

Comments
 (0)